Skip to content

Commit e15be32

Browse files
committed
jest-junit CI only
1 parent 0b9ef8f commit e15be32

1 file changed

Lines changed: 18 additions & 14 deletions

File tree

libs/accounts/passkey/jest.config.ts

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff 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

2933
export default config;

0 commit comments

Comments
 (0)