diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-03-24 15:53:30 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-03-24 18:00:22 +0100 |
| commit | fba491f2c4e878cc9c7ae9788d9316cb21e30e01 (patch) | |
| tree | a761520e8a70d35e7f206447712d8491802bc50c /jest.setup.js | |
| parent | 6b5c861eea12c67c4440d9e086513bd8b196c150 (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.js | 7 |
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'; - }, -})); |
