diff --git a/README.md b/README.md index 87de0da..c2ee08a 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ test('counter button increments the count', async () => { > [!NOTE] > This library doesn't expose or use React's `act`. Instead, you should use Vitest's locators and `expect.element` API that have [retry-ability mechanism](https://vitest.dev/guide/browser/assertion-api) baked in. -`vitest-browser-react` also automatically injects `render` and `cleanup` methods on the `page`. Example: +`vitest-browser-react` also automatically injects `render` method on the `page`. Example: ```ts // vitest.config.ts @@ -46,7 +46,7 @@ test('counter button increments the count', async () => { }) ``` -Unlike `@testing-library/react`, `vitest-browser-react` cleans up the component before the test starts instead of after, so you can see the rendered result in your UI. To avoid auto-cleanup, import the `render` function from `vitest-browser-vue/pure`. +Unlike `@testing-library/react`, `vitest-browser-react` cleans up the component before the test starts instead of after, so you can see the rendered result in your UI. To avoid auto-cleanup, import the `render` function from `vitest-browser-react/pure`. ## Special thanks