Skip to content

Migrate test suite from ava to Node.js built-in test runner - #18

Merged
mjradwin merged 1 commit into
mainfrom
claude/exciting-sagan-x59ufl
Jun 19, 2026
Merged

Migrate test suite from ava to Node.js built-in test runner#18
mjradwin merged 1 commit into
mainfrom
claude/exciting-sagan-x59ufl

Conversation

@mjradwin

Copy link
Copy Markdown
Member

Replace the ava test framework with Node.js's built-in node:test module and node:assert for assertions.

Changes

  • Test framework: Migrated from ava to Node.js built-in node:test

    • Updated all test declarations from test(name, (t) => {...}) to test(name, () => {...})
    • Removed the t parameter from all test callbacks
  • Assertions: Replaced ava assertion methods with Node.js assert equivalents

    • t.is()assert.strictEqual()
    • t.true()assert.ok()
  • Dependencies: Removed ava from devDependencies in package.json

  • Test command: Updated npm test script from ava to node --test

This change simplifies the test infrastructure by using Node.js's native testing capabilities, eliminating an external dependency while maintaining full test coverage and assertion semantics.

https://claude.ai/code/session_01Gj1hABQvxUN6xCTeBAgbMV

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Gj1hABQvxUN6xCTeBAgbMV
@mjradwin
mjradwin merged commit d19ac38 into main Jun 19, 2026
6 checks passed
@mjradwin
mjradwin deleted the claude/exciting-sagan-x59ufl branch June 19, 2026 22:06
@sonarqubecloud

Copy link
Copy Markdown

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