add changes
This commit is contained in:
29
backend/jest.config.js
Normal file
29
backend/jest.config.js
Normal file
@@ -0,0 +1,29 @@
|
||||
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
|
||||
};
|
||||
Reference in New Issue
Block a user