testing-library-docs
testing-library-docs copied to clipboard
docs site for @testing-library/*
Docs for https://github.com/testing-library/react-testing-library/pull/1354 https://deploy-preview-1417--testing-library.netlify.app/docs/react-testing-library/api#oncaughterror https://deploy-preview-1416--testing-library.netlify.app/docs/react-testing-library/faq/ Testing error boundaries is closely related to `onCaughtError` so it felt natural to include docs here.
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...
Updates the example notes re: MSW to mention that jsdom doesn't include fetch and will require a polyfill
I just got through porting the Svelte examples to v5, and I went ahead and did it in the [STL repository itself](https://github.com/testing-library/svelte-testing-library/pull/440) so I could ensure that examples would be...
The [setup example for adding custom queries globally](https://testing-library.com/docs/react-testing-library/setup#add-custom-queries) for (at least) React seems to break `screen`-specific functionality such as `screen.debug()`. If I understand correctly (via https://github.com/testing-library/dom-testing-library/issues/516#issuecomment-1025096164) this bit: ``` const...
**Describe the bug** In the "Migrate from Enzyme" documentation ([migrate-from-enzyme.mdx](https://github.com/testing-library/testing-library-docs/blob/main/docs/react-testing-library/migrate-from-enzyme.mdx)), the Chrome Web Store link for the Testing Playground extension is broken. **To Reproduce** Steps to reproduce the behavior: 1....
NodeJS has a [built in test runner](https://nodejs.org/docs/latest/api/test.html), but [the library docs](https://testing-library.com/docs/react-testing-library/setup#using-without-jest) don't provide any guidance for how to configure the library to work with it -------------- 👆 Click "Preview"! Issues...
Bumps [@babel/runtime](https://github.com/babel/babel/tree/HEAD/packages/babel-runtime) from 7.18.9 to 7.27.0. Release notes Sourced from @babel/runtime's releases. v7.27.0 (2025-03-24) Thanks @ishchhabra and @vovkasm for your first PRs! :eyeglasses: Spec Compliance babel-generator, babel-parser #16977 Default importAttributesKeyword...
Removes [axios](https://github.com/axios/axios). It's no longer used after updating ancestor dependencies [axios](https://github.com/axios/axios), [@docusaurus/core](https://github.com/facebook/docusaurus/tree/HEAD/packages/docusaurus) and [@docusaurus/preset-classic](https://github.com/facebook/docusaurus/tree/HEAD/packages/docusaurus-preset-classic). These dependencies need to be updated together. Removes `axios` Updates `@docusaurus/core` from 2.0.1 to 3.7.0 Release...
Bumps [@babel/runtime-corejs3](https://github.com/babel/babel/tree/HEAD/packages/babel-runtime-corejs3) from 7.18.9 to 7.27.0. Release notes Sourced from @babel/runtime-corejs3's releases. v7.27.0 (2025-03-24) Thanks @ishchhabra and @vovkasm for your first PRs! :eyeglasses: Spec Compliance babel-generator, babel-parser #16977 Default importAttributesKeyword...