ci: refs #6695 vitest junit file fix
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
parent
1a137f5f3d
commit
de9f3f32fd
|
@ -87,7 +87,7 @@ pipeline {
|
||||||
expression { !PROTECTED_BRANCH }
|
expression { !PROTECTED_BRANCH }
|
||||||
}
|
}
|
||||||
environment {
|
environment {
|
||||||
NODE_ENV = ""
|
NODE_ENV = ''
|
||||||
CI = 'true'
|
CI = 'true'
|
||||||
TZ = 'Europe/Madrid'
|
TZ = 'Europe/Madrid'
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,11 +6,11 @@ import VueI18nPlugin from '@intlify/unplugin-vue-i18n/vite';
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
|
|
||||||
let reporters,
|
let reporters,
|
||||||
junit;
|
outputFile;
|
||||||
|
|
||||||
if (process.env.CI) {
|
if (process.env.CI) {
|
||||||
reporters = 'junit';
|
reporters = ['junit', 'default'];
|
||||||
junit = {outputFile: './junit/vitest.xml'};
|
outputFile = {junit: './junit/vitest.xml'};
|
||||||
} else {
|
} else {
|
||||||
reporters = 'default';
|
reporters = 'default';
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,7 @@ if (process.env.CI) {
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
test: {
|
test: {
|
||||||
reporters,
|
reporters,
|
||||||
junit,
|
outputFile,
|
||||||
environment: 'happy-dom',
|
environment: 'happy-dom',
|
||||||
setupFiles: 'test/vitest/setup-file.js',
|
setupFiles: 'test/vitest/setup-file.js',
|
||||||
include: [
|
include: [
|
||||||
|
|
Loading…
Reference in New Issue