Repository navigation
ci: run the unit tests on Node 22 [20261121-fix-test-command-so-runs-node] - #103
Merged
Merged
Conversation
node --test tests/ fails on Node 22 with "Cannot find module '.../tests'", so npm test ran no tests. Pass the quoted glob "tests/*.test.js", which Node 21+ expands itself on every shell, and move CI and release to Node 22.
This was referenced Nov 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Topic:
20261121-fix-test-command-so-runs-nodeChange summary
node --test tests/fails on Node 22:Cannot find module '<repo>/tests', sonpm testran no tests.package.json:testis nownode --test "tests/*.test.js". Node 21+ expands the quoted glob itself, asdoc/api/test.mdrecommends, so it is the same on bash and cmd.exe.tests/dom.js(a helper) stays out.ci.ymlandrelease.yml:node-version: 20→22. Node 20 cannot expand the glob.Verify
node --test "tests/*.test.js"Verified: green, and the run describes the tree as it is now.
Ship decision: GO
No Critical or Important finding. 8 review readers, 0 fix-now findings.
Things I didn't touch
enginesfield or.nvmrc. On Node 20,npm testnow fails loudly ("Could not find").tests/has no subfolders today.msedgedriver-toolinstall (both pre-existing).Release
20261121-fix-test-command-so-runs-node — test command on Node 22
Change
npm testruns the unit suite on Node 22, and CI and release builds run on Node 22. Nothing changes for people using the app.Before release
kiln verifyran the full unit suite (npm test's new form): exit 0, 214 of 214 pass on Node 22.17.1. (checked)# tests 214on this pull request. (confirm)Release steps
v*tag.After release
v*tag's Release run passes itsnpm teststep on Node 22. (confirm)Rollback
git revertthe merge commit, then open and merge that pull request.