chore: configure jest coverage

This commit is contained in:
张翔
2026-03-24 13:30:52 +08:00
parent 99f9267bca
commit 707f125c14
2 changed files with 4 additions and 37 deletions
+3 -1
View File
@@ -12,6 +12,7 @@
"test:unit": "jest",
"test:coverage": "jest --coverage",
"test:coverage:check": "jest --coverage --ci",
"coverage:report": "open coverage/lcov-report/index.html",
"test:e2e": "cd e2e && npm test",
"test:smoke": "cd e2e && npx playwright test --grep @smoke",
"test:tier:fast": "cd e2e && TEST_TIER=fast npx playwright test --config=playwright.config.tiered.ts",
@@ -45,7 +46,8 @@
"lighthouse:assert": "lhci assert",
"lighthouse:upload": "lhci upload",
"lighthouse:desktop": "lhci autorun --settings.preset=desktop",
"lighthouse:mobile": "lhci autorun --settings.preset=mobile"
"lighthouse:mobile": "lhci autorun --settings.preset=mobile",
"prepare": "husky"
},
"dependencies": {
"@antv/g2": "^5.4.8",