Releases: vitest-community/vitest-browser-react
Releases · vitest-community/vitest-browser-react
v2.0.5
v2.0.4
v2.0.3
🐞 Bug Fixes
- Use a simple counter for act - by @ocavue in #43 (8b122)
- Attach a stable testid to default
baseElementandcontainer- by @nizans in #44 (e8acb)- Warning: If you are using snapshots with
container, update to Vitest 4.0.18 to avoid rendering injecteddata-testidattribute.
- Warning: If you are using snapshots with
View changes on GitHub
v2.0.2
🐞 Bug Fixes
- Remove unwanted tsconfig options - by @mrginglymus in #32 (5b350)
View changes on GitHub
v2.0.1
v2.0.0
🚨 Breaking Changes
- Support async act v2 - by @cloudkite and Matan Borenkraout in #22 (dd899)
- Support new Vitest 4 syntax - by @sheremet-va in #28 (791cb)
🚀 Features
- Add
locatorproperty - by @sheremet-va (12e20) - Add
RenderOptionstype for easier migration from RTL - by @wojtekmaj in #27 (e3377)
🐞 Bug Fixes
- Add a mention of @vitejs/plugin-react - by @sheremet-va (b2d41)
View changes on GitHub
v2.0.0-beta.4
🚨 Breaking Changes
- Support new Vitest 4 syntax - by @sheremet-va in #28 (791cb)
View changes on GitHub
v2.0.0-beta.3
🚀 Features
- Add
RenderOptionstype for easier migration from RTL - by @wojtekmaj in #27 (e3377)
View changes on GitHub
v2.0.0-beta.2
v2.0.0-beta.1
🚨 Breaking Changes
- Support async act - by @cloudkite and Matan Borenkraout in #22 (dd899)
This release changes the signature of render and renderHook functions. They now return a Promise:
- const screen = render(<Component count={1} />)
+ const screen = await render(<Component count={1} />)