-
-
Notifications
You must be signed in to change notification settings - Fork 113
/
jest.config.js
28 lines (28 loc) · 1.05 KB
/
jest.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
module.exports = {
roots: ['<rootDir>'],
moduleFileExtensions: ['js', 'ts', 'tsx', 'json'],
setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
testPathIgnorePatterns: ['./.next/', './node_modules/'],
moduleNameMapper: {
'\\.(css|less)$': 'identity-obj-proxy',
'^@components(.*)$': '<rootDir>/src/components$1',
'^@api(.*)$': '<rootDir>/src/api$1',
'^@models(.*)$': '<rootDir>/src/models$1',
'^@connectors(.*)$': '<rootDir>/src/connectors$1',
'^@screens(.*)$': '<rootDir>/src/screens$1',
'^@hooks(.*)$': '<rootDir>/src/hooks$1',
'^@services(.*)$': '<rootDir>/src/services$1',
'^@validation(.*)$': '<rootDir>/src/validation$1',
'^@constants(.*)$': '<rootDir>/src/constants$1',
'^@context(.*)$': '<rootDir>/src/context$1',
'^@queries(.*)$': '<rootDir>/src/queries$1',
'^@data(.*)$': '<rootDir>/src/data$1',
'^@typeDefs(.*)$': '<rootDir>/src/types$1',
'^@generated(.*)$': '<rootDir>/src/generated$1',
},
testEnvironment: 'jsdom',
transform: {
'^.+\\.(ts|tsx)$': 'babel-jest',
},
clearMocks: true,
};