File tree Expand file tree Collapse file tree 4 files changed +9841
-9257
lines changed Expand file tree Collapse file tree 4 files changed +9841
-9257
lines changed Original file line number Diff line number Diff line change 1
- linters :
2
- " src/**/*(!spec).ts " :
3
- - prettier --write --config ./.prettierrc.yml
4
- - tslint --project ./tsconfig.json -t codeFrame --fix
5
- - git add
6
- " (src/**/*.spec.ts|test/**/*.ts) " :
7
- - prettier --write --config ./.prettierrc.yml
8
- # TODO LOW tslint will not work because of the following error
9
- # ✖ tslint --project ./tsconfig.jest.json -t codeFrame --fix found some errors. Please fix them and try committing again.
10
- # '/Users/michaelwittwer/dev/shiftcode/dynamo-easy/test/models/complex.model.ts' is not included in project.
11
- # - tslint --project ./tsconfig.jest.json -t codeFrame --fix
12
- - git add
13
- " **/package.json " :
14
- - sort-package-json
15
- - git add
1
+ " src/**/!(*.spec).ts " :
2
+ - prettier --write --config ./.prettierrc.yml
3
+ - tslint --project ./tsconfig.json -t codeFrame --fix
4
+ - git add
5
+ " (src/**/*.spec.ts|test/**/*.ts) " :
6
+ - prettier --write --config ./.prettierrc.yml
7
+ # TODO LOW tslint will not work because of the following error
8
+ # ✖ tslint --project ./tsconfig.jest.json -t codeFrame --fix found some errors. Please fix them and try committing again.
9
+ # '/Users/michaelwittwer/dev/shiftcode/dynamo-easy/test/models/complex.model.ts' is not included in project.
10
+ # - tslint --project ./tsconfig.jest.json -t codeFrame --fix
11
+ - git add
12
+ " **/package.json " :
13
+ - sort-package-json
14
+ - git add
Original file line number Diff line number Diff line change 1
1
module . exports = {
2
- testEnvironment : "node" ,
3
- globals : {
4
- "ts-jest" : {
5
- tsConfig : "./tsconfig.jest.json"
6
- }
7
- } ,
8
- transform : {
9
- ".(ts|tsx|js)" : "ts-jest"
10
- } ,
11
- testRegex : "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$" ,
12
- moduleFileExtensions : [
13
- "ts" ,
14
- "tsx" ,
15
- "js"
16
- ] ,
17
2
coveragePathIgnorePatterns : [
18
3
"/node_modules/" ,
19
4
"/test/"
@@ -26,8 +11,26 @@ module.exports = {
26
11
statements : 10
27
12
}
28
13
} ,
14
+ globals : {
15
+ "ts-jest" : {
16
+ diagnostics : {
17
+ ignoreCodes : [ 151001 ]
18
+ } ,
19
+ tsConfig : "./tsconfig.jest.json"
20
+ }
21
+ } ,
22
+ moduleFileExtensions : [
23
+ "ts" ,
24
+ "tsx" ,
25
+ "js"
26
+ ] ,
29
27
setupFiles : [
30
28
"reflect-metadata" ,
31
29
'./test/jest-setup.ts'
32
- ]
33
- } ;
30
+ ] ,
31
+ testEnvironment : "node" ,
32
+ testRegex : "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$" ,
33
+ transform : {
34
+ ".(ts|tsx|js)" : "ts-jest"
35
+ }
36
+ }
You can’t perform that action at this time.
0 commit comments