aboutsummaryrefslogtreecommitdiffstats
path: root/jest.config.js
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-06-01 23:21:30 +0200
committerArmand Philippot <git@armandphilippot.com>2022-06-02 19:10:28 +0200
commitf7cc48495b085fe8f6cfa37e80e968d5b47639df (patch)
tree1e43ee0095979a0009b521ef7cc2a0f069b132b3 /jest.config.js
parenta8af53c118478e6ed68975c32cc1202b7c7b798e (diff)
test: install and configure cypress
I also configure Jest to avoid conflicts between Cypress and Jest.
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/',
],
};