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

🐐 Simple and complete React DOM testing utilities that encourage good testing practices.

Results 106 react-testing-library issues
Sort by recently updated
recently updated
newest added

### What you did: A [simple update from v13 to v14](https://github.com/wojtekmaj/react-async-button/commit/fa41b3b9900a25d76141bcf2080f94f7ee5f5dee) broke my Vitest-based test where I was using `await user.click(...)` as the promise no longer resolves. ### Reproduction: Run...

needs more information

``` "@testing-library/dom": "^8.13.0", "@testing-library/jest-dom": "^6.1.3", "@testing-library/react": "13.3.0", "@testing-library/react-hooks": "^8.0.1", "@testing-library/user-event": "^14.4.3", "react": "^18.2.0", "react-dom": "^18.2.0", "react-test-renderer: 18.1.0)" "`node` version: 18" "`pnpm` (or `yarn`) version: 7" ``` ### Relevant code or...

enhancement
BREAKING CHANGE

**BREAKING CHANGE** The `legacyRoot` option is no longer supported now that `ReactDOM.render` has been removed from React. There is no alternative. To ensure compatibility with React Testing Library 15, make...

Will be released in the next alpha to test at Meta and Vercel first. **BREAKING CHANGE** `act` and APIs using it (e.g. `render` or `renderHook`) are now async and must...

- `@testing-library/react` version: 14.1.2 - Testing Framework and version: Jest 29.7 - DOM Environment: jsdom 20.0.3 ### Relevant code or config: ```jsx it('uses a consistent scope', () => { const...

Hello, I am using Next.js, and I have a problem when trying to test a component with react.createNode or react.createElement. The test cannot understand my component and displays errors. However,...

needs more information

### Describe the feature you'd like: I'd like `getByLabelText` to resolve the associated elements of `aria-labelledby`. As I'm writing this it occurs to me that this might be too costly...

Hi, I get this error whenever I import @testing-library/react "@testing-library/jest-dom": "^6.0.0", "@testing-library/react": "^14.1.2", "@testing-library/user-event": "^14.0.0",

- `@testing-library/react` version: 14.0.0 - Testing Framework and version: jest - DOM Environment: ### Relevant code or config: ```ts // CompA.tsx const CompA = () => null; export default CompA;...

bug

- `@testing-library/react` version: `^14.0.0` - Testing Framework and version: `Jest`: `^29.5.0` - DOM Environment: `jest-environment-jsdom`: `^29.5.0` `node`: `16.10.0` ### Problem description: When we're running tests on React 18 concurrent mode,...

needs more information