1
0
Fork 0
mirror of https://gitlab.com/bramw/baserow.git synced 2025-01-30 10:26:29 +00:00
bramw_baserow/web-frontend/coverage.config.js
2023-04-28 10:56:33 +00:00

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,
}