mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
[real-time] convert real time to esm GitOrigin-RevId: 7cc530cc977549d3274be42585735e1fd72cad5f
26 lines
510 B
JavaScript
26 lines
510 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: false,
|
|
...reporterOptions,
|
|
},
|
|
})
|