Skip to content

Commit

Permalink
test: add coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
SkeLLLa committed Jan 3, 2025
1 parent 7c9a885 commit 5236154
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,12 @@ jobs:
eslint_flags: '. --ext js,jsx,ts,tsx'
- name: Test
run: pnpm test
# - name: Upload coverage to Codecov
# uses: codecov/codecov-action@v1
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# name: codecov-umbrella
# fail_ci_if_error: true
# verbose: true
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
use_oidc: true
disable_search: true
files: ./lcov.info
flags: js_open_source
fail_ci_if_error: false
verbose: true
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,4 @@ temp

# Non-finished
**/*.xxx.*
lcov.info
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"lint:types": "tsc -p tsconfig.json",
"release": "semantic-release",
"test": "pnpm run lint && pnpm run test:unit",
"test:unit": "globstar --node -- node --no-warnings --import tsx --test \"test/**/*.spec.ts\""
"test:unit": "globstar --node -- node --no-warnings --import tsx --experimental-test-coverage --test-reporter=lcov --test-reporter-destination=lcov.info --test \"test/**/*.spec.ts\""
},
"dependencies": {
"@no-esm/sql-template-tag": "^5.2.2",
Expand Down

0 comments on commit 5236154

Please sign in to comment.