diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9e965c474ed174cf0f60ea15144d96a6f2d7d785..5232aa848f86574449d970aa34c73ee4239cd551 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -49,7 +49,7 @@ alfa test: when: always reports: junit: - - alfa-client/reports/unit-tests.xml + - alfa-client/reports/*.xml .admin: stage: lint diff --git a/alfa-client/jest.preset.js b/alfa-client/jest.preset.js index 3e0b4a8bd638cd8c2f1ce189c5c258d4b3c0682d..c60c997e556cbde2e70720756a413877c7203c0a 100644 --- a/alfa-client/jest.preset.js +++ b/alfa-client/jest.preset.js @@ -28,6 +28,5 @@ module.exports = { moduleNameMapper: { 'lodash-es': 'lodash', }, - workerIdleMemoryLimit: '1024MB', - reporters: ['default', ['jest-junit', { outputDirectory: 'reports', outputName: 'unit-tests.xml' }]], + workerIdleMemoryLimit: '1024MB' }; diff --git a/alfa-client/libs/admin/configuration/jest.config.ts b/alfa-client/libs/admin/configuration/jest.config.ts index 7b8ab3df6e12af6c69e5a52778822c7fd33ec9e3..f9231a3e07d09f1001f52f21ab43ae2debedd1d6 100644 --- a/alfa-client/libs/admin/configuration/jest.config.ts +++ b/alfa-client/libs/admin/configuration/jest.config.ts @@ -18,4 +18,5 @@ export default { 'jest-preset-angular/build/serializers/ng-snapshot', 'jest-preset-angular/build/serializers/html-comment', ], + reporters: ['default', ['jest-junit', { outputDirectory: 'reports', outputName: 'unit-tests-admin-configuration.xml' }]], }; diff --git a/alfa-client/libs/command-shared/jest.config.ts b/alfa-client/libs/command-shared/jest.config.ts index b2077e1498d4dd86c0eca88db06acc5c00761bd3..ef60b99ab91664f72d122b507a4a6d5806a5ecc4 100644 --- a/alfa-client/libs/command-shared/jest.config.ts +++ b/alfa-client/libs/command-shared/jest.config.ts @@ -43,4 +43,5 @@ export default { ], }, transformIgnorePatterns: ['node_modules/(?!.pnpm|.*\\.mjs$)'], + reporters: ['default', ['jest-junit', { outputDirectory: 'reports', outputName: 'unit-tests-command-shared.xml' }]], }; diff --git a/alfa-client/libs/common/jest.config.ts b/alfa-client/libs/common/jest.config.ts index 337992514b0a7095c87d4e8de92c23d9f6338a8c..07697173fb16c7d6086b4119ac50646a2c09c44a 100644 --- a/alfa-client/libs/common/jest.config.ts +++ b/alfa-client/libs/common/jest.config.ts @@ -41,4 +41,5 @@ export default { 'jest-preset-angular/build/serializers/ng-snapshot', 'jest-preset-angular/build/serializers/html-comment', ], + reporters: ['default', ['jest-junit', { outputDirectory: 'reports', outputName: 'unit-tests-common.xml' }]], };