Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 19, 2025

Test 298 was failing in CI with "Received function did not throw" when testing that ECHO command throws before plugin is loaded.

Changes

  • Converted callback-style tests (with done parameter) to synchronous tests
  • Changed .toThrow(Error) to .toThrow() for broader error matching

The original pattern mixed callback-style tests with synchronous assertions, which caused Bun's test framework to not properly catch the thrown error. Removing the done parameter makes the test fully synchronous, allowing .toThrow() to correctly capture exceptions.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI changed the title [WIP] Fix test 298 for error handling in plugin Fix test298 callback-style test incompatibility with Bun Nov 19, 2025
Copilot AI requested a review from mathiasrw November 19, 2025 03:05
Copilot finished work on behalf of mathiasrw November 19, 2025 03:05
@mathiasrw mathiasrw force-pushed the bun/testdriver branch 2 times, most recently from 444b68d to 773f416 Compare November 19, 2025 14:04
@mathiasrw mathiasrw closed this Nov 19, 2025
@mathiasrw mathiasrw deleted the copilot/sub-pr-2173 branch November 19, 2025 14:20
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