File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,20 +10,24 @@ const config: Config = {
1010 } ,
1111 moduleFileExtensions : [ 'ts' , 'js' , 'html' ] ,
1212 coverageDirectory : '../../../coverage/libs/accounts/passkey' ,
13- reporters : [
14- 'default' ,
15- [
16- 'jest-junit' ,
17- {
18- outputDirectory : 'artifacts/tests/accounts-passkey' ,
19- // It is critical that the package_name here is unique among all
20- // Jest configs. This file is uploaded to GCS and will error on upload
21- // if not unique because permissions for the upload deliberately prevent
22- // overwriting files.
23- outputName : 'accounts-passkey-jest-unit-results.xml' ,
24- } ,
25- ] ,
26- ] ,
13+ ...( process . env [ 'CI' ]
14+ ? {
15+ reporters : [
16+ 'default' ,
17+ [
18+ 'jest-junit' ,
19+ {
20+ outputDirectory : 'artifacts/tests/accounts-passkey' ,
21+ // It is critical that the package_name here is unique among all
22+ // Jest configs. This file is uploaded to GCS and will error on upload
23+ // if not unique because permissions for the upload deliberately prevent
24+ // overwriting files.
25+ outputName : 'accounts-passkey-jest-unit-results.xml' ,
26+ } ,
27+ ] ,
28+ ] ,
29+ }
30+ : { } ) ,
2731} ;
2832
2933export default config ;
You can’t perform that action at this time.
0 commit comments