Add Vitest cleanup hint to react-testing-library setup docs
This PR adds a heading to the setup guide for react-testing-library that explains how to get auto-cleanup working when using Vitest. The wording was inspired by a similar heading in the vue-testing-library setup guide: https://testing-library.com/docs/vue-testing-library/setup/#vitest
Deploy Preview for testing-library ready!
| Name | Link |
|---|---|
| Latest commit | 00437008709a32a13b4fd11bfad5ec7c4c9fe93e |
| Latest deploy log | https://app.netlify.com/sites/testing-library/deploys/66e3fa6080e8700008f9df24 |
| Deploy Preview | https://deploy-preview-1422--testing-library.netlify.app |
| Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
I had a crack at documenting how to get it working without enabling globals. Let me know what you think.
Just following up to ask if there's anything else needed to progress this PR?
@all-contributors please add @ezzatron for docs :)