Skip to content

Commit

Permalink
Fix #25360 Generate coverage and result tests files for core-web tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fmontes committed Jun 29, 2023
1 parent de68237 commit 4c1e572
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
16 changes: 15 additions & 1 deletion core-web/libs/template-builder/jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,21 @@ export default {
stringifyContentPathRegex: '\\.(html|svg)$'
}
},
coverageDirectory: '../../coverage/libs/template-builder',
coverageDirectory: '../../target/core-web-reports/',
collectCoverage: true,
coverageReporters: [['lcovonly', { file: 'TEST-template-builder.lcov' }]],
collectCoverageFrom: [
'src/**/*.ts',
'!src/**/*.stories.ts',
'!src/**/*.module.ts',
'!src/index.ts'
],
reporters: [
[
'jest-junit',
{ outputDirectory: 'target/core-web-reports', outputName: 'TEST-template-builder.xml' }
]
],
transform: {
'^.+\\.(ts|mjs|js|html)$': 'jest-preset-angular'
},
Expand Down
3 changes: 1 addition & 2 deletions core-web/libs/template-builder/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
},
"configurations": {
"ci": {
"ci": true,
"codeCoverage": true
"ci": true
}
}
},
Expand Down

0 comments on commit 4c1e572

Please sign in to comment.