30 lines
559 B
JavaScript
30 lines
559 B
JavaScript
module.exports = {
|
|
testEnvironment: 'node',
|
|
coverageDirectory: 'coverage',
|
|
collectCoverageFrom: [
|
|
'controllers/**/*.js',
|
|
'middleware/**/*.js',
|
|
'models/**/*.js',
|
|
'routes/**/*.js',
|
|
'!models/index.js',
|
|
'!**/node_modules/**'
|
|
],
|
|
coverageThreshold: {
|
|
global: {
|
|
branches: 70,
|
|
functions: 70,
|
|
lines: 70,
|
|
statements: 70
|
|
}
|
|
},
|
|
testMatch: [
|
|
'**/tests/**/*.test.js',
|
|
'**/__tests__/**/*.js'
|
|
],
|
|
verbose: true,
|
|
forceExit: true,
|
|
clearMocks: true,
|
|
resetMocks: true,
|
|
restoreMocks: true
|
|
};
|