From de9f3f32fdffad77d4ec84c63b2ffaa93b3766f6 Mon Sep 17 00:00:00 2001 From: Juan Ferrer Toribio Date: Fri, 21 Feb 2025 12:17:05 +0100 Subject: [PATCH] ci: refs #6695 vitest junit file fix --- Jenkinsfile | 2 +- vitest.config.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index cf5a0eff1..dfef29c58 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -87,7 +87,7 @@ pipeline { expression { !PROTECTED_BRANCH } } environment { - NODE_ENV = "" + NODE_ENV = '' CI = 'true' TZ = 'Europe/Madrid' } diff --git a/vitest.config.js b/vitest.config.js index af12d8fb5..f856a1dc9 100644 --- a/vitest.config.js +++ b/vitest.config.js @@ -6,11 +6,11 @@ import VueI18nPlugin from '@intlify/unplugin-vue-i18n/vite'; import path from 'path'; let reporters, - junit; + outputFile; if (process.env.CI) { - reporters = 'junit'; - junit = {outputFile: './junit/vitest.xml'}; + reporters = ['junit', 'default']; + outputFile = {junit: './junit/vitest.xml'}; } else { reporters = 'default'; } @@ -19,7 +19,7 @@ if (process.env.CI) { export default defineConfig({ test: { reporters, - junit, + outputFile, environment: 'happy-dom', setupFiles: 'test/vitest/setup-file.js', include: [