testing-library-docs
testing-library-docs copied to clipboard
docs site for @testing-library/*
# Problem Our tests implement an `afterEach(async () => { /* ... */ })` handler. We registered it, thinking all was well! However, jest processes afterEach handlers in reverse order...
This PR relates to the changes made here: https://github.com/testing-library/dom-testing-library/pull/852 This should **not** be merged until https://github.com/testing-library/dom-testing-library/pull/852 has been approved and merged 🙂
Suggested in https://github.com/testing-library/testing-library-docs/pull/701#issuecomment-745167132 I tried to choose the [admonition types](https://v2.docusaurus.io/docs/markdown-features/#calloutsadmonitions) based on the existing note content but I'd appreciate feedback on which types to use.
Port of testing-library/react-testing-library#833 # Dependencies - [ ] https://github.com/testing-library/dom-testing-library/pull/834 - [x] https://github.com/testing-library/react-testing-library/pull/833 - [x] https://github.com/testing-library/vue-testing-library/pull/175 - [ ] https://github.com/marko-js/testing-library
I've added clarification that a callback function is the recommended argument type to be passed into the `callback` argument of `waitForElementToBeRemoved`. As DOM nodes are not guaranteed to be removed...
Makes a number of changes to the disappearance guide, moving it in a direction where it recommends more of the best practices that have appeared since the last time it...
**Describe the bug** https://testing-library.com/docs/react-testing-library/setup#add-custom-queries Existing setup for custom queries documentation does not work with typescript **To Reproduce** converting the following to typescript ```js const queryAllByDataCy = (...args) => queryHelpers.queryAllByAttribute('data-cy', ...args)...
- `@testing-library/dom` version: **latest** - Testing Framework and version: **jest 26.0.0** - DOM Environment: **jsdom latest** ### Relevant code or config: ```js import * as React from 'react' import {render,...