ci: refs #6695 vitest junit file fix
gitea/salix-front/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Juan Ferrer 2025-02-21 12:17:05 +01:00
parent 1a137f5f3d
commit de9f3f32fd
2 changed files with 5 additions and 5 deletions

2
Jenkinsfile vendored
View File

@ -87,7 +87,7 @@ pipeline {
expression { !PROTECTED_BRANCH }
}
environment {
NODE_ENV = ""
NODE_ENV = ''
CI = 'true'
TZ = 'Europe/Madrid'
}

View File

@ -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: [