querysystem内部框架维护(不需要用户手动调用事件派发)
新增test覆盖测试
This commit is contained in:
@@ -15,6 +15,29 @@ module.exports = {
|
||||
],
|
||||
coverageDirectory: 'coverage',
|
||||
coverageReporters: ['text', 'lcov', 'html'],
|
||||
// 设置覆盖度阈值
|
||||
coverageThreshold: {
|
||||
global: {
|
||||
branches: 40,
|
||||
functions: 50,
|
||||
lines: 50,
|
||||
statements: 50
|
||||
},
|
||||
// 核心模块要求更高覆盖率
|
||||
'./src/ECS/Core/': {
|
||||
branches: 50,
|
||||
functions: 60,
|
||||
lines: 60,
|
||||
statements: 60
|
||||
},
|
||||
// ECS基础模块
|
||||
'./src/ECS/': {
|
||||
branches: 45,
|
||||
functions: 55,
|
||||
lines: 55,
|
||||
statements: 55
|
||||
}
|
||||
},
|
||||
verbose: true,
|
||||
transform: {
|
||||
'^.+\\.tsx?$': ['ts-jest', {
|
||||
|
||||
Reference in New Issue
Block a user