This repository was archived by the owner on Oct 2, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-27
lines changed Expand file tree Collapse file tree 2 files changed +6
-27
lines changed Original file line number Diff line number Diff line change 1
- linters :
2
- " src/**/*.ts " :
3
- - " tslint --fix" # Run TSLint
4
- - " prettier --write" # Run Prettier
5
- - " jest --bail --findRelatedTests" # Run tests
6
- - " git add"
7
- ignore :
8
- - " **/__fixtures__/error.ts"
1
+ " src/**/*.ts " :
2
+ - " tslint --fix" # Run TSLint
3
+ - " prettier --write" # Run Prettier
4
+ - " jest --bail --findRelatedTests" # Run tests
5
+ - " git add"
Original file line number Diff line number Diff line change 1
- const preset = require ( 'ts-jest' ) . jestPreset ;
2
-
3
1
module . exports = {
4
2
preset : 'ts-jest' ,
5
- collectCoverage : false ,
3
+ testEnvironment : 'node' ,
6
4
coveragePathIgnorePatterns : [
7
5
'/node_modules/' ,
8
6
'/tests/' ,
@@ -13,24 +11,8 @@ module.exports = {
13
11
tsConfig : "tsconfig.test.json" ,
14
12
} ,
15
13
} ,
16
- // @TODO Uncomment the following lines once test coverage has reached an acceptable threshold
17
- // 'coverageThreshold': {
18
- // 'global': {
19
- // 'branches': 90,
20
- // 'functions': 95,
21
- // 'lines': 95,
22
- // 'statements': 95
23
- // }
24
- // },
25
14
moduleDirectories : [
26
15
'src' ,
27
16
'node_modules' ,
28
17
] ,
29
- testMatch : [
30
- ...preset . testMatch ,
31
- '**/?(*.)+(spec|integ|test).ts?(x)' ,
32
- ] ,
33
- transformIgnorePatterns : [
34
- '<rootDir>/node_modules/' ,
35
- ] ,
36
18
} ;
You can’t perform that action at this time.
0 commit comments