-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjest.config.js
More file actions
27 lines (27 loc) · 956 Bytes
/
jest.config.js
File metadata and controls
27 lines (27 loc) · 956 Bytes
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
module.exports = {
roots: ['<rootDir>'],
moduleFileExtensions: ['js', 'ts', 'tsx', 'json'],
testPathIgnorePatterns: [
'<rootDir>[/\\\\](node_modules|.next)[/\\\\]',
'<rootDir>/__tests__/utils',
],
transformIgnorePatterns: ['[/\\\\]node_modules[/\\\\].+\\.(ts|tsx)$'],
transform: {
'^.+\\.(ts|tsx)$': 'babel-jest',
},
watchPlugins: [
'jest-watch-typeahead/filename',
'jest-watch-typeahead/testname',
],
moduleNameMapper: {
'\\.(css|less|sass|scss)$': 'identity-obj-proxy',
'\\.(gif|ttf|eot|svg|png)$': '<rootDir>/__test__/__mocks__/fileMock.js',
'^@/atoms$': '<rootDir>/src/components/atoms',
'^@/molecules$': '<rootDir>/src/components/molecules',
'^@/organisms$': '<rootDir>/src/components/organisms',
'^root/config$': '<rootDir>/src/config',
'^root/actions$': '<rootDir>/src/actions',
'^root/services$': '<rootDir>/src/services',
'^root/styles$': '<rootDir>/src/styles',
},
};