Updated CI configuration and Jest preset for improved coverage reporting.

- ⚙️ **Config**: Modified CI command to include coverage in package.json
- ⚙️ **Config**: Updated summary file location in azure-pipelines.yml
- ⚙️ **Config**: Enhanced Jest preset to configure coverage reporters
This commit is contained in:
Lorenz Hilpert
2025-04-25 10:59:14 +02:00
parent 57968bd061
commit 2046212581
3 changed files with 20 additions and 7 deletions

View File

@@ -1,3 +1,19 @@
const nxPreset = require('@nx/jest/preset').default;
module.exports = { ...nxPreset };
module.exports = {
...nxPreset,
// Configure coverage reporters to include Cobertura XML reports
coverageReporters: ['text', 'cobertura'],
// Ensure coverage is collected from all relevant files
collectCoverageFrom: [
'**/*.{js,jsx,ts,tsx}',
'!**/node_modules/**',
'!**/vendor/**',
'!**/*.spec.{js,jsx,ts,tsx}',
'!**/test-setup.ts',
'!**/index.ts',
'!**/public-api.ts',
'!**/generated/**',
'!**/environments/**',
],
};