Skip to content

Commit 50312b5

Browse files
committed
Add user-event reexport
1 parent 9d98ea4 commit 50312b5

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ test('HTML element snapshot', () => {
4141

4242
### Re-exported @testing-library/react
4343

44-
All functions from `@testing-library/react` are re-exported, so you can import directly from `bun-test-env-dom`:
44+
All functions from `@testing-library/react` and `@testing-library/user-event` are re-exported, so you can import directly from `bun-test-env-dom`:
4545

4646
```tsx
4747
import { render, screen, fireEvent } from 'bun-test-env-dom'

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,4 @@ declare module 'bun:test' {
4343
}
4444

4545
export * from '@testing-library/react'
46+
export * from '@testing-library/user-event'

0 commit comments

Comments
 (0)