File tree 3 files changed +21
-2
lines changed
packages/builders/src/jest
3 files changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,9 @@ describe('Jest Builder', () => {
65
65
watch : false ,
66
66
codeCoverage : true ,
67
67
ci : true ,
68
- updateSnapshot : true
68
+ updateSnapshot : true ,
69
+ onlyChanged : true ,
70
+ passWithNoTests : true
69
71
}
70
72
} )
71
73
. toPromise ( ) ;
@@ -80,7 +82,9 @@ describe('Jest Builder', () => {
80
82
watch : false ,
81
83
coverage : true ,
82
84
ci : true ,
83
- updateSnapshot : true
85
+ updateSnapshot : true ,
86
+ onlyChanged : true ,
87
+ passWithNoTests : true
84
88
} ,
85
89
[ './jest.config.js' ]
86
90
) ;
Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ export interface JestBuilderOptions {
17
17
watch : boolean ;
18
18
ci ?: boolean ;
19
19
codeCoverage ?: boolean ;
20
+ onlyChanged ?: boolean ;
21
+ passWithNoTests ?: boolean ;
20
22
setupFile ?: string ;
21
23
updateSnapshot ?: boolean ;
22
24
}
@@ -31,6 +33,8 @@ export default class JestBuilder implements Builder<JestBuilderOptions> {
31
33
coverage : options . codeCoverage ,
32
34
ci : options . ci ,
33
35
updateSnapshot : options . updateSnapshot ,
36
+ onlyChanged : options . onlyChanged ,
37
+ passWithNoTests : options . passWithNoTests ,
34
38
globals : JSON . stringify ( {
35
39
'ts-jest' : {
36
40
tsConfigFile : path . relative ( builderConfig . root , options . tsConfig )
Original file line number Diff line number Diff line change 23
23
" Run tests when files change. (https://jestjs.io/docs/en/cli#watch)" ,
24
24
"default" : false
25
25
},
26
+ "onlyChanged" : {
27
+ "type" : " boolean" ,
28
+ "alias" : " o" ,
29
+ "description" :
30
+ " Isolate tests affected by uncommitted changes. (https://jestjs.io/docs/en/cli#onlychanged)"
31
+ },
32
+ "passWithNoTests" : {
33
+ "type" : " boolean" ,
34
+ "description" :
35
+ " Allow test suite to pass when no test files are found. (https://jestjs.io/docs/en/cli#passwithnotests)"
36
+ },
26
37
"codeCoverage" : {
27
38
"type" : " boolean" ,
28
39
"description" :
You can’t perform that action at this time.
0 commit comments