Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ jobs:
- name: Install Playwright Browsers
run: npx playwright install chromium --only-shell
- run: npm test -- --forbid-only
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}

check-ts:
name: Check types
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
},
"types": "dist/index.d.ts",
"scripts": {
"test": "c8 --reporter=text playwright test",
"test": "c8 --reporter=text --reporter=lcov playwright test",
"build": "tsdown",
"check": "tsc --noEmit",
"lint": "oxlint --config .oxlintrc.json",
Expand Down
3 changes: 0 additions & 3 deletions src/cli/program.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,6 @@ export function program(
},
coverage_data: Coverage[],
) {
if (coverage_data.length === 0) {
throw new MissingDataError()
}
let coverage = calculate_coverage(coverage_data)
let min_line_coverage_result = validate_min_line_coverage(coverage.line_coverage_ratio, min_file_coverage)
let min_file_line_coverage_result = validate_min_file_line_coverage(
Expand Down