querysystem内部框架维护(不需要用户手动调用事件派发)

新增test覆盖测试
This commit is contained in:
YHH
2025-07-28 17:14:10 +08:00
parent ea06a9f07d
commit abec2b3648
11 changed files with 2934 additions and 11 deletions

View File

@@ -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', {