-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
37 lines (29 loc) · 984 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$': ['<rootDir>/build/pkg/cjs/transform.js']},
transformIgnorePatterns: ['.+/node_modules/', '<rootDir>/build/'],
modulePathIgnorePatterns: ['<rootDir>/build/'],
testMatch: ['<rootDir>/**/*.test.fnk'],
testPathIgnorePatterns: ['<rootDir>/node_modules/', '<rootDir>/build/'],
watchPathIgnorePatterns: ['<rootDir>/node_modules/', '<rootDir>/build/'],
resolver: '<rootDir>/build/pkg/cjs/module-resolver.js',
snapshotResolver: '<rootDir>/build/pkg/cjs/snapshot-resolver.js',
timers: 'modern',
clearMocks: true,
resetMocks: false,
collectCoverage: true,
// coverageProvider: 'v8',
collectCoverageFrom: ['<rootDir>/src/**/*.fnk'],
coverageDirectory: './build/cov',
coverageReporters: ['lcov'],
coverageThreshold: {
global: {
branches: 100,
functions: 100,
lines: 100,
statements: 100
}
}
};