Skip to content

Comments

Migrate to Node.js built-in test runner#41

Merged
yentsun merged 1 commit intomasterfrom
claude/review-latest-issue-K4KeN
Jan 18, 2026
Merged

Migrate to Node.js built-in test runner#41
yentsun merged 1 commit intomasterfrom
claude/review-latest-issue-K4KeN

Conversation

@yentsun
Copy link
Owner

@yentsun yentsun commented Jan 18, 2026

Replace mocha and sinon with Node.js native test framework to eliminate
devDependencies and security vulnerabilities.

Changes:

  • Replace mocha test runner with node:test
  • Replace sinon.spy() with t.mock.fn() from node:test
  • Remove mocha and sinon from devDependencies
  • Import describe, it, before from node:test
  • Remove done() callbacks (not needed in Node test runner)
  • Combine dependent tests into single cohesive test

All 32 tests pass with zero external dependencies.

Fixes #39

Replace mocha and sinon with Node.js native test framework to eliminate
devDependencies and security vulnerabilities.

Changes:
- Replace mocha test runner with node:test
- Replace sinon.spy() with t.mock.fn() from node:test
- Remove mocha and sinon from devDependencies
- Import describe, it, before from node:test
- Remove done() callbacks (not needed in Node test runner)
- Combine dependent tests into single cohesive test

All 32 tests pass with zero external dependencies.

Fixes #39
@coveralls
Copy link

Pull Request Test Coverage Report for Build 21118533210

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 97.01%

Totals Coverage Status
Change from base Build 21112884820: 0.0%
Covered Lines: 512
Relevant Lines: 528

💛 - Coveralls

@yentsun yentsun merged commit 04296dc into master Jan 18, 2026
2 checks passed
@yentsun yentsun deleted the claude/review-latest-issue-K4KeN branch January 18, 2026 21:03
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.

Migrate to Node.js built-in test runner

3 participants