From f7cc48495b085fe8f6cfa37e80e968d5b47639df Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Wed, 1 Jun 2022 23:21:30 +0200 Subject: test: install and configure cypress I also configure Jest to avoid conflicts between Cypress and Jest. --- jest.config.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'jest.config.js') 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/(.*)$': '/src/pages/$1', '^@services/(.*)$': '/src/services/$1', '^@styles/(.*)$': '/src/styles/$1', - '^@test-utils': '/__tests__/utils/test-utils', + '^@tests/(.*)$': '/tests/$1', '^@ts/(.*)$': '/src/ts/$1', '^@utils/(.*)$': '/src/utils/$1', }, @@ -38,8 +38,9 @@ const customJestConfig = { testEnvironment: 'jest-environment-jsdom', testPathIgnorePatterns: [ - '/__tests__/jest/__mocks__', - '/__tests__/utils', + '/tests/jest/__mocks__', + '/tests/utils', + '/tests/cypress/', ], }; -- cgit v1.2.3