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

**Description**: Integrating vitest with a fresh nextJS application results in the following error: ``` Error: Objects are not valid as a React child (found: object with keys {$$typeof, type, key,...

Hello I will try to explain the case in the simplest way that I could: I have a component: Employee.tsx It has a pseudo code like this: ``` const Employee...

Hello everybody. When using `screen.logTestingPlaygroundURL() ` Sometimes the generated URL is to big and when you paste it in the browser. the playground just stays empty, I found it to...

eplaced an inefficient forEach loop with the find() method in the render() function's container lookup logic, enabling early exit when a matching container is found. Type of Change Bug fix...

eplaced an inefficient forEach loop with the find() method in the render() function's container lookup logic, enabling early exit when a matching container is found. Type of Change Bug fix...

Fixes #1422 ## Problem `fireEvent.mouseEnter` was not forwarding `relatedTarget` properly - it would be `window` instead of the specified element. ## Solution Changed spread operator to explicit parameters in `fire-event.js`:...

**What**: fix typo in jest.config.js **Why**: **How**: **Checklist**: - [ ] Documentation added to the [docs site](https://github.com/testing-library/testing-library-docs) - [ ] Tests - [ ] TypeScript definitions updated - [x] Ready...

**What**: **Why**: **How**: **Checklist**: - [x] Documentation added to the [docs site](https://github.com/testing-library/testing-library-docs) - [ ] Tests - [ ] TypeScript definitions updated - [ ] Ready to be merged

"@testing-library/jest-dom": "^6.6.3", "@testing-library/react": "11.2.6", "@testing-library/react-hooks": "5.1.2", "@testing-library/user-event": "^14.5.2", "vitest": "^3.0.5", "react": "17.0.2", "react-dom": "17.0.2", node: v20.18.1 ### Relevant code or config: ```html ``` ### What you did: expect( component.getByPlaceholderText('Klemmenblock'), ).toBeVisible();...

- `@testing-library/react` version: 16.3.0 - Testing Framework and version: vitest 3.2.4 - DOM Environment: jsdom 26.1.0 ### Relevant code or config: ```json //package.json { "name": "@emg-hub/ui", "version": "0.0.0", "private": true,...