mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-02 13:49:00 +02:00
a1f1ca2028
[docstore] conversion to esm GitOrigin-RevId: 9d255047bd7ae25f2b0b38f3a721741e8a0b7ad8
26 lines
506 B
JavaScript
26 lines
506 B
JavaScript
const { defineConfig } = require('vitest/config')
|
|
|
|
let reporterOptions = {}
|
|
if (process.env.CI) {
|
|
reporterOptions = {
|
|
reporters: [
|
|
'default',
|
|
[
|
|
'junit',
|
|
{
|
|
classnameTemplate: `Unit tests.{filename}`,
|
|
},
|
|
],
|
|
],
|
|
outputFile: 'reports/junit-vitest-unit.xml',
|
|
}
|
|
}
|
|
module.exports = defineConfig({
|
|
test: {
|
|
include: ['test/unit/js/*.test.{js,ts}'],
|
|
setupFiles: ['./test/unit/setup.js'],
|
|
isolate: true,
|
|
...reporterOptions,
|
|
},
|
|
})
|