From 641cfdb0b28ffa0e6cd5d2342bc218613ce4d051 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Thu, 24 Mar 2022 19:14:15 +0100 Subject: test(jest): define a custom render function to set providers --- jest.config.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'jest.config.js') diff --git a/jest.config.js b/jest.config.js index 8f397f6..8ca07f3 100644 --- a/jest.config.js +++ b/jest.config.js @@ -26,6 +26,7 @@ const customJestConfig = { '^@pages/(.*)$': '/src/pages/$1', '^@services/(.*)$': '/src/services/$1', '^@styles/(.*)$': '/src/styles/$1', + '^@test-utils': '/__tests__/utils/test-utils', '^@ts/(.*)$': '/src/ts/$1', '^@utils/(.*)$': '/src/utils/$1', }, @@ -35,6 +36,11 @@ const customJestConfig = { // The test environment that will be used for testing testEnvironment: 'jest-environment-jsdom', + + testPathIgnorePatterns: [ + '/__tests__/jest/__mocks__', + '/__tests__/utils', + ], }; /** -- cgit v1.2.3