summaryrefslogtreecommitdiffstats
path: root/jest.setup.js
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-06-03 11:58:21 +0200
committerGitHub <noreply@github.com>2022-06-03 11:58:21 +0200
commit6d0a9504406524957b351aee748d9f5c8a84c299 (patch)
tree1b859015ef5e52b2c7c4e7521f428fb2215df21d /jest.setup.js
parenta8af53c118478e6ed68975c32cc1202b7c7b798e (diff)
parentfc7a6e98268d34f313d79c817e38c09ad6cde960 (diff)
test: add end to end tests (#19)
In addition to Jest tests, I configure Cypress to test some pages and features. I also fix some Jest errors due to images import.
Diffstat (limited to 'jest.setup.js')
-rw-r--r--jest.setup.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jest.setup.js b/jest.setup.js
index d50c988..d2710ea 100644
--- a/jest.setup.js
+++ b/jest.setup.js
@@ -1,5 +1,5 @@
import '@testing-library/jest-dom/extend-expect';
-import './__tests__/jest/__mocks__/matchMedia.mock';
+import '@tests/jest/__mocks__/matchMedia.mock';
jest.mock('next/dist/client/router', () => require('next-router-mock'));
jest.mock('next/dynamic', () => () => 'dynamic-import');