import * as matchers from '@testing-library/jest-dom/matchers';
import { render, screen } from '@testing-library/react';
expect.extend(matchers);
it('test', async () => {
render(<button>test</button>);
expect(screen.getByRole('button')).toBeDisabled();
});
What is the expected behavior?
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|
What version of Bun is running?
1.1.7
What platform is your computer?
MacOS
What steps can reproduce the bug?
happy-dom
,@testing-library/react
happy-dom
What is the expected behavior?
it could be nice to show shorter log for react element on vitest (or jest), it shows
What do you see instead?
Additional information
No response