This commit is contained in:
张成
2026-03-24 16:07:02 +08:00
commit aa8eaa6ccd
121 changed files with 34042 additions and 0 deletions

27
jest.config.js Normal file
View 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
};