Skip to content

fix: update test paths and convert to Node.js test runner#276

Merged
avoidwork merged 1 commit into
masterfrom
fix/test-paths-and-node-runner
May 19, 2026
Merged

fix: update test paths and convert to Node.js test runner#276
avoidwork merged 1 commit into
masterfrom
fix/test-paths-and-node-runner

Conversation

@avoidwork
Copy link
Copy Markdown
Owner

@avoidwork avoidwork commented May 19, 2026

Summary

Fixes the test directory path in package.json scripts (changed tests/ to test/) and converts the test suite from Mocha-style syntax to Node.js built-in test runner to match the project's declared test framework.

Type of Change

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Refactor (no functional changes)
  • Performance improvement
  • CI / build / tooling

Testing

Ran node --test --experimental-test-coverage test/**/*.js — all 9 tests pass. Tests cover stock configuration, listener counts, heartbeat intervals, custom events, stop() cancellation, stop() idempotency, and CLOSE event disconnect cleanup.

Coverage

  • 100% line coverage maintained

Checklist

  • npm run lint passes
  • Tests pass with 100% line coverage
  • No forbidden patterns used
  • Conventional Commit style applied

- Fix package.json scripts to use 'test/' instead of 'tests/'
- Convert test file from Mocha-style describe/it/done to Node.js native test API
- Use async/await for async test cases
- Achieve 100% code coverage
@avoidwork avoidwork self-assigned this May 19, 2026
@avoidwork avoidwork merged commit a3f1b4b into master May 19, 2026
3 checks passed
@avoidwork avoidwork deleted the fix/test-paths-and-node-runner branch May 19, 2026 00:17
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