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