@naturalcycles/dev-lib 12.14.1 → 12.14.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/cfg/jest.config.js
CHANGED
|
@@ -107,10 +107,12 @@ module.exports = {
|
|
|
107
107
|
'!**/*.component.ts',
|
|
108
108
|
'!**/*.modal.ts',
|
|
109
109
|
],
|
|
110
|
+
// default: ["clover", "json", "lcov", "text"]
|
|
111
|
+
coverageReporters: ['clover', 'json', 'lcov', !CI && 'text'].filter(Boolean),
|
|
110
112
|
// CI: only jest-junit reporter (no default)
|
|
111
113
|
// not-CI: only default reporter, but not jest-junit
|
|
112
114
|
reporters: [
|
|
113
|
-
|
|
115
|
+
'default',
|
|
114
116
|
CI && [
|
|
115
117
|
'jest-junit',
|
|
116
118
|
{
|
|
@@ -22,6 +22,19 @@ module.exports = {
|
|
|
22
22
|
testMatch: ['<rootDir>/src/**/*.integration.test.ts'],
|
|
23
23
|
testPathIgnorePatterns: ['<rootDir>/.*/__exclude/'],
|
|
24
24
|
setupFilesAfterEnv,
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
reporters: [
|
|
26
|
+
'default',
|
|
27
|
+
CI && [
|
|
28
|
+
'jest-junit',
|
|
29
|
+
{
|
|
30
|
+
suiteName: 'jest tests',
|
|
31
|
+
outputDirectory: './tmp/jest',
|
|
32
|
+
outputName: 'integration.xml',
|
|
33
|
+
suiteNameTemplate: '{filepath}',
|
|
34
|
+
classNameTemplate: '{classname}',
|
|
35
|
+
titleTemplate: '{title}',
|
|
36
|
+
ancestorSeparator: ' ',
|
|
37
|
+
},
|
|
38
|
+
],
|
|
39
|
+
].filter(Boolean),
|
|
27
40
|
}
|