Skip to content

Migrate Node tests from mocha/ts-node to Vitest - #302

Merged
keichi merged 1 commit into
masterfrom
migrate-node-tests-to-vitest
Oct 15, 2026
Merged

keichi merged 1 commit into
masterfrom
migrate-node-tests-to-vitest

Conversation

@keichi

@keichi keichi commented Oct 15, 2026 •

Copy link
Copy Markdown
Owner

Depends on #303 (Node 22+). Base is bump-node-version; it will retarget to master once #303 is merged.

Summary

  • Run the Node tests with Vitest (vitest run) instead of mocha + ts-node. Test files are unchanged (globals: true).
  • Remove ts-node, which is unmaintained and incompatible with TypeScript 7.

Browser tests still run on karma (mocha and karma-* stay for now). Moving them to Vitest browser mode will be a follow-up PR, after which karma and mocha can be removed.

Testing

  • npm test (Vitest, Node 26 and Node 22): 166 passed
  • npm run test:browser (karma, ChromeHeadless): 166 SUCCESS
  • npm run build passes

@keichi keichi mentioned this pull request Oct 15, 2026
ts-node is unmaintained and does not work with TypeScript 7. Run the Node
tests with Vitest instead; test files are unchanged thanks to globals.

Browser tests still run on karma and will be migrated separately.
@keichi
keichi force-pushed the migrate-node-tests-to-vitest branch from 99e3d86 to 3bacd6b Compare October 15, 2026 14:03
@keichi
keichi changed the base branch from master to bump-node-version October 15, 2026 14:03
Base automatically changed from bump-node-version to master October 15, 2026 14:05
@keichi
keichi merged commit 6f5ec70 into master Oct 15, 2026
6 checks passed
@keichi
keichi deleted the migrate-node-tests-to-vitest branch October 15, 2026 14:06
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.

1 participant