diff --git a/src/app/layout.tsx b/src/app/layout.tsx
index 4766155..9b08e10 100644
--- a/src/app/layout.tsx
+++ b/src/app/layout.tsx
@@ -25,7 +25,7 @@ export default function RootLayout({
}>) {
return (
({
+ ...jest.requireActual("@/features/pets"),
+ usePetPageViewModel: jest.fn(),
+}))
+
+const baseHookMock = {
+ pet: petResponseMock,
+ isLoading: false,
+}
+
+const mockParams = { id: petResponseMock.id }
+
+describe("Pet Details Page", () => {
+ beforeEach(() => {
+ jest.clearAllMocks()
+ React.use = jest.fn().mockReturnValue(mockParams)
+ ;(usePetPageViewModel as jest.Mock).mockReturnValue(baseHookMock)
+ })
+
+ it("should display the title and subtitle", () => {
+ renderWithProviders(
{pet.id}
+{pet.name}
+{pet.species}
+