-
Notifications
You must be signed in to change notification settings - Fork 1
/
jest.config.js
29 lines (28 loc) · 911 Bytes
/
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
29
const TEST_REGEX = '(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|js?|tsx?|ts?)$'
module.exports = {
// setupFiles: ['<rootDir>/jest.setup.js'],
testRegex: TEST_REGEX,
transform: {
'^.+\\.tsx?$': 'babel-jest',
},
testPathIgnorePatterns: [
'<rootDir>/.next/',
'<rootDir>/node_modules/',
'/tailwind/',
],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
collectCoverage: false,
moduleNameMapper: {
'components/(.*)$': '<rootDir>/components/$1',
'gql/(.*)$': '<rootDir>/gql/$1',
'hooks/(.*)$': '<rootDir>/hooks/$1',
'interfaces/(.*)$': '<rootDir>/interfaces/$1',
'layout/(.*)$': '<rootDir>/layout/$1',
'lib/(.*)$': '<rootDir>/lib/$1',
'store/(.*)$': '<rootDir>/store/$1',
store: '<rootDir>/store',
'\\.css$': require.resolve('./__tests__/style-mock.js'),
// 'lib/(.*)$': '<rootDir>/lib/$1',
// 'utils/(.*)$': '<rootDir>/utils/$1'
},
}