- e2e:修死选择器与蜜罐误命中、补断言、GA4/security-headers 用例诚实标注 skip 边界;新增 assert-helpers/fixtures/hydrated/primary-nav/touch-targets 等复用桩。 - 集成层:config/test/jest.integration.config.js + tests-integration/ 真库 一次性 SQLite 用例,teardown 守卫开发库指纹。 - 门禁工具链:jest.setup 归位到根、scripts/accessibility 全站 axe 节点计数、 check-brand-text-token/check-motion-constraints 机械守卫、stryker/lighthouse 配置收敛。
54 lines
1.3 KiB
JSON
54 lines
1.3 KiB
JSON
{
|
|
"$schema": "./node_modules/@stryker-mutator/core/schema/stryker-schema.json",
|
|
"packageManager": "npm",
|
|
"reporters": ["html", "clear-text", "progress"],
|
|
"testRunner": "jest",
|
|
"coverageAnalysis": "perTest",
|
|
"mutate": [
|
|
"src/lib/**/*.ts",
|
|
"src/hooks/**/*.{ts,tsx}",
|
|
"src/components/ui/**/*.{ts,tsx}",
|
|
"src/components/layout/**/*.{ts,tsx}",
|
|
"src/components/analytics/**/*.{ts,tsx}",
|
|
"src/components/seo/**/*.{ts,tsx}",
|
|
"src/components/detail/**/*.{ts,tsx}",
|
|
"src/components/sections/**/*.{ts,tsx}",
|
|
"src/components/content/**/*.{ts,tsx}",
|
|
"src/lib/cms/**/*.ts",
|
|
"!src/**/*.test.{ts,tsx}",
|
|
"!src/**/__tests__/**"
|
|
],
|
|
"thresholds": {
|
|
"high": 80,
|
|
"low": 60,
|
|
"break": 50
|
|
},
|
|
"timeoutMS": 120000,
|
|
"cleanTempDir": true,
|
|
"symlinkNodeModules": true,
|
|
"ignorePatterns": [
|
|
".eslintrc.json",
|
|
".eslintrc",
|
|
"eslint.config.mjs",
|
|
".lintstagedrc.js",
|
|
"commitlint.config.js",
|
|
"next.config.mjs",
|
|
"postcss.config.js",
|
|
"tailwind.config.js",
|
|
"tsconfig.json",
|
|
"public/",
|
|
"dist/",
|
|
".next/",
|
|
"scripts/",
|
|
"e2e/",
|
|
".claude/",
|
|
".trae/",
|
|
".git/",
|
|
".husky/",
|
|
"coverage/",
|
|
".superpowers/"
|
|
],
|
|
"jest": {
|
|
"configFile": "config/test/jest.config.js"
|
|
}
|
|
} |