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. --- tests/jest/__mocks__/fileMock.js | 1 - tests/jest/__mocks__/styleMock.js | 1 - 2 files changed, 2 deletions(-) delete mode 100644 tests/jest/__mocks__/fileMock.js delete mode 100644 tests/jest/__mocks__/styleMock.js (limited to 'tests') diff --git a/tests/jest/__mocks__/fileMock.js b/tests/jest/__mocks__/fileMock.js deleted file mode 100644 index ad66de4..0000000 --- a/tests/jest/__mocks__/fileMock.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = '/test-file-stub'; diff --git a/tests/jest/__mocks__/styleMock.js b/tests/jest/__mocks__/styleMock.js deleted file mode 100644 index f053ebf..0000000 --- a/tests/jest/__mocks__/styleMock.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = {}; -- cgit v1.2.3