Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed Aug 7, 2024
1 parent 92fb640 commit b5694a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ 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:

```ts
Expand Down
7 changes: 0 additions & 7 deletions test/__snapshots__/render.test.ts.snap

This file was deleted.

0 comments on commit b5694a2

Please sign in to comment.