mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 09:09:36 +02:00
* [monorepo] migrate build scripts to Jenkins * [fraud-dash] fix integration with monorepo GitOrigin-RevId: 6a30ec5ea68a1eae9b663faf9ccdc741ec7f9cf8
26 lines
535 B
TypeScript
26 lines
535 B
TypeScript
import { defineConfig, ViteUserConfig } from 'vitest/config'
|
|
|
|
let reporterOptions: ViteUserConfig['test'] = {}
|
|
if (process.env.CI) {
|
|
reporterOptions = {
|
|
reporters: [
|
|
'default',
|
|
[
|
|
'junit',
|
|
{
|
|
classnameTemplate: `Unit tests.{filename}`,
|
|
},
|
|
],
|
|
],
|
|
outputFile: 'reports/junit-vitest-unit.xml',
|
|
}
|
|
}
|
|
export default defineConfig({
|
|
test: {
|
|
include: ['test/unit/**/*.test.{js,ts}'],
|
|
setupFiles: ['./test/setup.js'],
|
|
isolate: false,
|
|
...reporterOptions,
|
|
},
|
|
})
|