mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-28 22:42:11 +01:00
- ⚙️ **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
20 lines
521 B
JavaScript
20 lines
521 B
JavaScript
const nxPreset = require('@nx/jest/preset').default;
|
|
|
|
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/**',
|
|
],
|
|
};
|