summaryrefslogtreecommitdiffstats
path: root/jest.setup.js
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-03-24 15:53:30 +0100
committerArmand Philippot <git@armandphilippot.com>2022-03-24 18:00:22 +0100
commitfba491f2c4e878cc9c7ae9788d9316cb21e30e01 (patch)
treea761520e8a70d35e7f206447712d8491802bc50c /jest.setup.js
parent6b5c861eea12c67c4440d9e086513bd8b196c150 (diff)
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.
Diffstat (limited to 'jest.setup.js')
-rw-r--r--jest.setup.js7
1 files changed, 0 insertions, 7 deletions
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';
- },
-}));