Files
outlookEmailPlus/tests/layout-system/jest.config.js
T
胡绍康andClaude Opus 4.6 39854520e6 chore: 准备开源发布 - 清理项目文件
- 更新 .gitignore,忽略所有文档和临时文件
- 删除迁移痕迹文件(AI提示词、PRD文档等)
- 更新 README.md,移除截图引用
- 只保留源代码用于开源发布

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-01 20:41:51 +08:00

49 lines
995 B
JavaScript

/**
* Jest 配置文件 - 布局系统测试
*/
module.exports = {
// 测试环境
testEnvironment: 'jsdom',
// 根目录
rootDir: '../../',
// 测试文件匹配模式
testMatch: [
'**/tests/layout-system/unit/**/*.test.js',
'**/tests/layout-system/integration/**/*.test.js',
'**/tests/layout-system/performance/**/*.test.js',
'**/tests/layout-system/accessibility/**/*.test.js'
],
// 覆盖率配置
collectCoverage: true,
coverageDirectory: 'tests/layout-system/coverage',
coverageThreshold: {
global: {
branches: 80,
functions: 80,
lines: 80,
statements: 80
}
},
// 覆盖率收集范围
collectCoverageFrom: [
'static/js/layout-manager.js',
'static/js/state-manager.js',
'!**/node_modules/**',
'!**/tests/**'
],
// 设置超时时间
testTimeout: 10000,
// 详细输出
verbose: true,
// 模拟 localStorage
setupFilesAfterEnv: ['<rootDir>/tests/layout-system/setup.js']
};