-
Notifications
You must be signed in to change notification settings - Fork 7
/
jest.config.js
51 lines (51 loc) · 1.32 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
module.exports = {
cacheDirectory: '<rootDir>/.jest/cache',
collectCoverageFrom: [
'<rootDir>/packages/natds-themes/**/*.js',
'<rootDir>/packages/natds-token-search/**/*.js',
'<rootDir>/packages/natds-icons/**/*.js',
'!**/build/**',
'!**/node_modules/**',
'!**/dist/**',
'!**/coverage/**',
'!**/static/**',
'!<rootDir>/packages/**/*.config.js',
'!<rootDir>/packages/natds-themes/react-native/*.js',
'!<rootDir>/packages/natds-themes/bin/**',
'!<rootDir>/packages/natds-token-search/src/styles/*.js',
'!<rootDir>/packages/natds-token-search/src/index.js',
'!<rootDir>/packages/natds-token-search/tokens/**',
'!<rootDir>/packages/natds-icons/regression/**',
'!<rootDir>/packages/natds-icons/inputs/**',
],
coverageDirectory: '<rootDir>/coverage',
coverageThreshold: {
global: {
branches: 100,
functions: 100,
lines: 100,
statements: 100,
},
},
setupFilesAfterEnv: [
'./jest.setup.js',
],
testMatch: [
'**/?(*.)+(spec|test).js',
],
testPathIgnorePatterns: [
'/node_modules/',
'/examples/',
'/coverage/',
'\\.snap$',
'/packages/.*/build/.*',
'/packages/.*/dist/.*',
],
transform: {
'^.+\\.[jt]sx?$': 'babel-jest',
},
verbose: true,
watchPathIgnorePatterns: [
'__file_snapshots__',
],
};