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
8 changes: 7 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,13 @@ jobs:
# and package-lock.json. Needs to run before npm install
- run: node version-check.js
- run: npm ci
- run: npm test
# Node 25 has a known incompatibility: extension-less files in "type: module"
# packages are treated as ESM, causing c8's require('yargs/yargs') to fail.
# Fall back to plain unit tests without coverage on Node 25 until upstream fixes this.
- if: matrix.node != '25'
run: npm test
- if: matrix.node == '25'
run: npm run test-no-coverage
- run: npm run lint
- run: npm audit --audit-level=critical
- run: npm run build-with-tests && npm run test-transpiled
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"generate": "./generate-client.sh",
"watch": "tsc --watch",
"test": "c8 node --test --test-reporter=spec --import tsx src/*_test.ts",
"test-no-coverage": "node --test --test-reporter=spec --import tsx src/*_test.ts",
"test-transpiled": "node --test --test-reporter=spec dist/*_test.js",
"integration-test": "tsx src/test/integration/index.ts",
"prepare": "npm run build && husky",
Expand Down