Skip to content

Migrate test suite from jest to node's built-in test runner#15

Merged
jmmoser merged 4 commits into
mainfrom
claude/evaluate-test-runner-9FZNj
May 8, 2026
Merged

Migrate test suite from jest to node's built-in test runner#15
jmmoser merged 4 commits into
mainfrom
claude/evaluate-test-runner-9FZNj

Conversation

@jmmoser

@jmmoser jmmoser commented May 8, 2026

Copy link
Copy Markdown
Owner

Replace jest 27 with node:test and node:assert/strict. All 163 tests
pass with coverage via --experimental-test-coverage. Bumps engines to
node >=20 (required for stable built-in runner) and drops jest and
@types/jest devDependencies.

claude added 4 commits May 8, 2026 19:20
Replace jest 27 with node:test and node:assert/strict. All 163 tests
pass with coverage via --experimental-test-coverage. Bumps engines to
node >=20 (required for stable built-in runner) and drops jest and
@types/jest devDependencies.
Required for the built-in test runner used by `npm test`, which is
only stable on Node >=20.
actions/checkout@v2 and actions/setup-node@v2 run on Node 16, which
GitHub has deprecated. Bump to v4, and setup-python to v5.
Node 22 added native glob expansion for `--test`, but Node 20 (the CI
target) does not — quoted globs reach node verbatim and fail with
"Could not find". Drop the quotes so sh expands the glob before invoking
node.
@jmmoser jmmoser merged commit ef62758 into main May 8, 2026
1 check failed
@jmmoser jmmoser deleted the claude/evaluate-test-runner-9FZNj branch May 8, 2026 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants