28 lines
587 B
JavaScript
28 lines
587 B
JavaScript
module.exports = {
|
|
testEnvironment: 'node',
|
|
collectCoverage: true,
|
|
coverageDirectory: 'coverage',
|
|
coverageReporters: ['text', 'lcov', 'html'],
|
|
collectCoverageFrom: [
|
|
'api/controller_front/**/*.js',
|
|
'!**/node_modules/**',
|
|
'!**/coverage/**',
|
|
'!**/logs/**'
|
|
],
|
|
coverageThreshold: {
|
|
global: {
|
|
branches: 80,
|
|
functions: 85,
|
|
lines: 90,
|
|
statements: 90
|
|
}
|
|
},
|
|
testMatch: [
|
|
'**/__tests__/**/*.js',
|
|
'**/?(*.)+(spec|test).js'
|
|
],
|
|
setupFilesAfterEnv: ['<rootDir>/__tests__/setup.js'],
|
|
testTimeout: 10000,
|
|
verbose: true
|
|
};
|