From fba491f2c4e878cc9c7ae9788d9316cb21e30e01 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Thu, 24 Mar 2022 15:53:30 +0100 Subject: build: configure jest Since Next.js v12, Jest is already configured with the next/jest package. I also added a package to mock next/router. --- jest.setup.js | 7 ------- 1 file changed, 7 deletions(-) (limited to 'jest.setup.js') diff --git a/jest.setup.js b/jest.setup.js index b4f1522..666127a 100644 --- a/jest.setup.js +++ b/jest.setup.js @@ -1,8 +1 @@ import '@testing-library/jest-dom/extend-expect'; - -jest.mock('next/image', () => ({ - __esModule: true, - default: () => { - return 'Next image stub'; - }, -})); -- cgit v1.2.3