mirror of
https://gitlab.com/bramw/baserow.git
synced 2025-01-30 02:23:54 +00:00
25 lines
670 B
JavaScript
25 lines
670 B
JavaScript
const path = require('path')
|
|
|
|
// Setting reporters on the command line does not work so enable via this env variable
|
|
// we have to set anyway when using the junit reporter in CI.
|
|
const junitReporterConfig = process.env.JEST_JUNIT_OUTPUT_DIR
|
|
? {
|
|
reporters: ['default', path.join(__dirname, '/node_modules/jest-junit')],
|
|
}
|
|
: {}
|
|
|
|
module.exports = {
|
|
coverageReporters: [
|
|
'text-summary',
|
|
['cobertura', { projectRoot: '/baserow/' }],
|
|
],
|
|
collectCoverageFrom: [
|
|
'<rootDir>/modules/**/*.{js,Vue,vue}',
|
|
'!**/node_modules/**',
|
|
'!**/.nuxt/**',
|
|
'!**/reports/**',
|
|
'!**/test/**',
|
|
'!**/generated/**',
|
|
],
|
|
...junitReporterConfig,
|
|
}
|