You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bun test with react DOM shows infinite error log on expect failed #10886
it could be nice to show shorter log for react element
on vitest (or jest), it shows
FAIL src/bun.test.tsx > test
Error: expect(element).toBeDisabled()
Received element is not disabled:
<button />
❯ src/bun.test.tsx:6:38
4| render(<button>test</button>);
5|
6| expect(screen.getByRole('button')).toBeDisabled();
| ^
7| });
8|
I'm having this issue too, and it makes debugging more than one test at a time impossible as well as making the expected/received outputs useless. Currently using version 1.2.10.
Activity
jjjjjjjjjjjjjjjjacob commentedon Apr 21, 2025
I'm having this issue too, and it makes debugging more than one test at a time impossible as well as making the expected/received outputs useless. Currently using version 1.2.10.
pere-seapoint commentedon Jul 16, 2025
Any update? This has forced us to migrate to vitest unfortunately
felix-wtfoxtrot commentedon Aug 21, 2025
this is infuriating when trying to write tests and bun (or HappyDom?) just endlessly spams the terminal :/
Only getting this when using
toBeEnabled()ortoBeDisabled()so far though.Fix verbose DOM element output in test failures (#10886)
mitchlloyd commentedon Oct 22, 2025
Tested today with updated dependencies before starting migration to vitest:
Swapped an assertion from
expect(button).toBeDisabled();toexpect(button).not.toBeDisabled();and confirmed I still get the infinite error output.Hardening: fix crashes across the runtime, bundler, dev server, shell…