-
Notifications
You must be signed in to change notification settings - Fork 0
chore(ci): try to add Node.js v20 to build matrix #28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -59,8 +59,10 @@ | |||||||||||||
| "lint:types": "tsc --noEmit", | ||||||||||||||
| "prepare": "husky; run-s -s build", | ||||||||||||||
| "test": "run-s test:runtime", | ||||||||||||||
boneskull marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||||||
| "test:runtime": "node --import tsx --test --test-reporter=spec \"test/**/*.test.ts\"", | ||||||||||||||
| "test:watch": "node --import tsx --test --test-reporter=spec --watch \"test/**/*.test.ts\"" | ||||||||||||||
| "test:base": "node --import tsx --test --test-reporter=spec", | ||||||||||||||
| "test:node20": "node --import tsx --test --test-reporter=spec test/*.test.ts", | ||||||||||||||
| "test:runtime": "npm run test:base -- \"test/*.test.ts\"", | ||||||||||||||
| "test:watch": "npm run test:base -- --watch \"test/*.test.ts\"" | ||||||||||||||
|
||||||||||||||
| "test:watch": "npm run test:base -- --watch \"test/*.test.ts\"" | |
| "test:watch": "npm run test:base -- --watch test/*.test.ts" |
Copilot
AI
Jan 9, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The test:runtime script forwards a quoted glob pattern to test:base using --, which may result in nested or escaped quotes being passed to the Node.js command. This could cause the glob pattern to be treated as a literal string rather than being expanded. Consider removing the quotes around the pattern in the forwarded argument, or test thoroughly to ensure the pattern is correctly interpreted by Node.js across different shells and platforms.
| "test:runtime": "npm run test:base -- \"test/*.test.ts\"", | |
| "test:watch": "npm run test:base -- --watch \"test/*.test.ts\"" | |
| "test:runtime": "npm run test:base -- test/*.test.ts", | |
| "test:watch": "npm run test:base -- --watch test/*.test.ts" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment states "this only works in POSIX environments" but the actual issue is not POSIX-specific. The problem is that npm doesn't perform shell glob expansion on arguments passed to scripts. The test:node20 script passes an unquoted wildcard pattern which may not be expanded correctly regardless of the operating system. Consider updating the comment to accurately reflect the actual limitation, or better yet, fix the underlying issue with how the wildcard is handled.