mirror of
https://github.com/oven-sh/bun
synced 2026-02-18 14:51:52 +00:00
The documentation shows test.todo("description") with a single argument,
but the type definitions required a callback function as the second argument.
This caused TypeScript error TS2554 when following the documentation.
This fix adds TestTodo and DescribeTodo interfaces that support both:
- Single argument: test.todo("unimplemented feature")
- With callback: test.todo("feature", () => { ... })
Fixes #25959
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>