backend unit tests
This commit is contained in:
22
backend/jest.config.js
Normal file
22
backend/jest.config.js
Normal file
@@ -0,0 +1,22 @@
|
||||
module.exports = {
|
||||
testEnvironment: 'node',
|
||||
coverageDirectory: 'coverage',
|
||||
collectCoverageFrom: [
|
||||
'**/*.js',
|
||||
'!**/node_modules/**',
|
||||
'!**/coverage/**',
|
||||
'!**/tests/**',
|
||||
'!jest.config.js'
|
||||
],
|
||||
coverageReporters: ['text', 'lcov', 'html'],
|
||||
testMatch: ['**/tests/**/*.test.js'],
|
||||
setupFilesAfterEnv: ['<rootDir>/tests/setup.js'],
|
||||
forceExit: true,
|
||||
testTimeout: 10000,
|
||||
coverageThreshold: {
|
||||
global: {
|
||||
lines: 80,
|
||||
statements: 80
|
||||
}
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user