-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
68 lines (53 loc) · 1.29 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
// For a detailed explanation regarding each configuration property, visit:
// https://jestjs.io/docs/en/configuration.html
module.exports = {
globals: {
'ts-jest': {
tsConfig: '<rootDir>/packages/*/tsconfig.json',
},
},
collectCoverageFrom: [
'**/packages/*/**/*.js',
'**/packages/*/**/*.ts',
'!**/bin/**',
'!**/cli/**',
'!**/perf/**',
'!**/__mocks__/**',
'!**/__tests__/**',
'!**/build/**',
'!**/vendor/**',
'!e2e/**',
],
modulePathIgnorePatterns: [
'examples/.*',
'packages/.*/build',
],
moduleFileExtensions: ['js', 'jsx', 'json', 'ts', 'tsx'],
testEnvironment: 'node',
projects: ['<rootDir>'],
setupFiles: [
'<rootDir>/packages/analyze/__tests__/@helpers/setup.ts',
],
testPathIgnorePatterns: [
'/node_modules/',
'/lib/',
'/dist/',
'/integration-tests/',
'\\.snap$',
'/build/',
'/coverage/',
'/packages/.*/build',
'/packages/.*/dist',
'/packages/.*/lib',
],
coveragePathIgnorePatterns: ['/__tests__/', '/node_modules/'],
testRegex: '(/__tests__/.*\.(test|spec))\\.(ts|tsx|js|jsx)$',
clearMocks: true,
coverageDirectory: 'coverage',
coverageProvider: 'v8',
verbose: true,
transform: {
'^.+\\.[jt]sx?$': 'babel-jest',
},
testEnvironment: 'node',
};