testing-library-docs icon indicating copy to clipboard operation
testing-library-docs copied to clipboard

Add Vitest cleanup hint to react-testing-library setup docs

Open ezzatron opened this issue 1 year ago • 2 comments

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

ezzatron avatar Sep 12 '24 07:09 ezzatron

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...

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 Sep 12 '24 07:09 netlify[bot]

I had a crack at documenting how to get it working without enabling globals. Let me know what you think.

ezzatron avatar Sep 13 '24 08:09 ezzatron

Just following up to ask if there's anything else needed to progress this PR?

ezzatron avatar Dec 10 '24 23:12 ezzatron

@all-contributors please add @ezzatron for docs :)

MatanBobi avatar Dec 11 '24 07:12 MatanBobi

@MatanBobi

I've put up a pull request to add @ezzatron! :tada:

allcontributors[bot] avatar Dec 11 '24 07:12 allcontributors[bot]