-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.js
37 lines (29 loc) · 977 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
30
31
32
33
34
35
36
37
export default {
testEnvironment: 'node',
setupFiles: [],
moduleFileExtensions: ['js', 'fnk'],
transform: {'^.+\\.fnk$': ['@fink/jest/transform.js']},
transformIgnorePatterns: ['<rootDir>/node_modules/', '<rootDir>/build/'],
resolver: '@fink/jest/cjs/module-resolver.js',
snapshotResolver: '@fink/jest/snapshot-resolver.js',
modulePathIgnorePatterns: ['<rootDir>/build/'],
testMatch: ['<rootDir>/**/*.test.fnk'],
testPathIgnorePatterns: ['<rootDir>/node_modules/', '<rootDir>/build/'],
watchPathIgnorePatterns: ['<rootDir>/node_modules/', '<rootDir>/build/'],
timers: 'modern',
clearMocks: true,
resetMocks: false,
collectCoverage: true,
collectCoverageFrom: ['<rootDir>/src/**/*.fnk'],
coveragePathIgnorePatterns: ['/node_modules/'],
coverageDirectory: './build/cov',
coverageReporters: ['lcov'],
coverageThreshold: {
global: {
branches: 100,
functions: 100,
lines: 100,
statements: 100
}
}
};