-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
22 lines (17 loc) · 768 Bytes
/
jest.config.js
File metadata and controls
22 lines (17 loc) · 768 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// For a detailed explanation regarding each configuration property, visit:
// https://jestjs.io/docs/en/configuration.html
module.exports = {
// An array of directory names to be searched recursively up from the requiring module's location
moduleDirectories: ['<rootDir>/node_modules', '<rootDir>/src'],
// An array of file extensions your modules use
moduleFileExtensions: ['js', 'json', 'jsx', 'ts', 'tsx', 'scss'],
// A map from regular expressions to module names that allow to stub out resources with a single module
moduleNameMapper: {
'^.+\\.(css|less|scss)$': 'identity-obj-proxy',
},
modulePaths: ['node_modules', '<rootDir>/src', '<rootDir>'],
transform: {
'^.+\\.(ts|tsx)$': 'ts-jest',
'^.+\\.js$': 'babel-jest',
},
};