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 }
|
||||
}
|
||||
environment {
|
||||
NODE_ENV = ""
|
||||
NODE_ENV = ''
|
||||
CI = 'true'
|
||||
TZ = 'Europe/Madrid'
|
||||
}
|
||||
|
|
|
@ -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: [
|
||||
|
|
Loading…
Reference in New Issue