Skip to content

Commit 0c6cb2a

Browse files
committed
chore: prepackのCIゲートからカバレッジ100%必須チェックを外す
コミット追加ごとに未カバー行を潰す運用は開発速度に対して負担が 大きいため、prepack(CIのbuildステップ)ではカバレッジ計測なしの 通常のテスト実行のみを必須とする。カバレッジ計測自体は test:coverage で必要な時にローカルで確認できるよう残す。
1 parent f19d2e9 commit 0c6cb2a

2 files changed

Lines changed: 1 addition & 7 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"dev": "vite",
4242
"preview": "vite preview",
4343
"prepare": "husky",
44-
"prepack": "npm run lint:ci && npm run typecheck && npm run test:coverage && npm run build",
44+
"prepack": "npm run lint:ci && npm run typecheck && npm test && npm run build",
4545
"release:patch": "npm version patch && git push --follow-tags",
4646
"release:minor": "npm version minor && git push --follow-tags",
4747
"release:major": "npm version major && git push --follow-tags"

vitest.config.mts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,6 @@ export default defineConfig({
1414
reporter: ['text', 'html', 'lcov'],
1515
include: ['src/**/*.{js,ts}'],
1616
exclude: ['src/index.js', 'src/index.ts', 'src/core/types.ts'],
17-
thresholds: {
18-
lines: 100,
19-
functions: 100,
20-
branches: 100,
21-
statements: 100,
22-
},
2317
},
2418
},
2519
});

0 commit comments

Comments
 (0)