base-ui icon indicating copy to clipboard operation
base-ui copied to clipboard

[test] Use vitest's `userEvent` implementation in browser tests

Open michaldudak opened this issue 11 months ago • 1 comments

Vitest docs don't recommend using React Testing Library's userEvent in browser tests (see the warning box in https://vitest.dev/guide/browser/#examples).

This PR changes the imported library depending on the environment in which the tests run.

michaldudak avatar Jan 09 '25 08:01 michaldudak

Deploy Preview for base-ui ready!

Name Link
Latest commit 22d74a25f37495821ebc9433fa5291e5d17e7269
Latest deploy log https://app.netlify.com/sites/base-ui/deploys/677f8c04f15e560008bce556
Deploy Preview https://deploy-preview-1314--base-ui.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

netlify[bot] avatar Jan 09 '25 08:01 netlify[bot]