summaryrefslogtreecommitdiffstats
path: root/jest.config.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.config.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.config.js')
-rw-r--r--jest.config.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/jest.config.js b/jest.config.js
index 8ca07f3..5a26772 100644
--- a/jest.config.js
+++ b/jest.config.js
@@ -26,7 +26,7 @@ const customJestConfig = {
'^@pages/(.*)$': '<rootDir>/src/pages/$1',
'^@services/(.*)$': '<rootDir>/src/services/$1',
'^@styles/(.*)$': '<rootDir>/src/styles/$1',
- '^@test-utils': '<rootDir>/__tests__/utils/test-utils',
+ '^@tests/(.*)$': '<rootDir>/tests/$1',
'^@ts/(.*)$': '<rootDir>/src/ts/$1',
'^@utils/(.*)$': '<rootDir>/src/utils/$1',
},
@@ -38,8 +38,9 @@ const customJestConfig = {
testEnvironment: 'jest-environment-jsdom',
testPathIgnorePatterns: [
- '<rootDir>/__tests__/jest/__mocks__',
- '<rootDir>/__tests__/utils',
+ '<rootDir>/tests/jest/__mocks__',
+ '<rootDir>/tests/utils',
+ '<rootDir>/tests/cypress/',
],
};