forked from snapshot-labs/score-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.unit.ts
More file actions
31 lines (30 loc) · 794 Bytes
/
jest.config.unit.ts
File metadata and controls
31 lines (30 loc) · 794 Bytes
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
/*
* For a detailed explanation regarding each configuration property and type check, visit:
* https://jestjs.io/docs/configuration
*/
export default {
clearMocks: true,
collectCoverage: true,
collectCoverageFrom: ['./src/**'],
coverageDirectory: 'coverage-unit',
coverageProvider: 'v8',
coveragePathIgnorePatterns: [
'/node_modules/',
'<rootDir>/dist/',
'<rootDir>/test/fixtures/',
'<rootDir>/src/strategies/'
],
preset: 'ts-jest',
testEnvironment: 'jest-environment-node-single-context',
moduleFileExtensions: ['js', 'ts'],
testMatch: [
'<rootDir>/src/**/?(*.)+(spec|test).[jt]s?(x)',
'<rootDir>/test/strategies/unit/**/?(*.)+(spec|test).[jt]s?(x)'
],
verbose: true,
globals: {
'ts-jest': {
isolatedModules: true
}
}
};