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 is your question: I have seen the following which was helpful: https://github.com/testing-library/react-hooks-testing-library/issues/23 This question steams further from that with regards to passing `initialProps`. I have updated React and...

question

- `@testing-library/react` version: 14.1.0 - Testing Framework and version: - Jest: 29.5.0 - DOM Environment: ### Relevant code or config: https://github.com/perses/perses/blob/nexucis/update-dev-deps/ui/plugin-system/src/components/PluginKindSelect/PluginKindSelect.test.tsx#L54-L55 ### What you did: I just upgraded the testing-library...

- `@testing-library/react` version: 13.3.0 - Testing Framework and version:[email protected] - DOM Environment:[email protected] jest-environment-jsdom@^27.5.1 Using multiline text in getByText fails. Is there a workaround for this? # Failing test ```js const...

### Describe the feature you'd like: As a followup to https://github.com/testing-library/react-testing-library/issues/1240. If a user isn't injecting globals (like in `vitest`), they need to call `cleanup` on their own and also...

### Describe the feature you'd like: As a user of react 18 with NextJS (with app directory), I would like to test routLayout.tsx file without having this warning : `Warning:...

**What**: I added a dependency array for `useEffect`. **What**: It would be clearer to add a dependency array, and some code already has one. **Checklist**: - [x] Documentation added to...

### Describe the feature you'd like: `fireEvent` support `beforeInput` event ### Suggested implementation: N/A ### Describe alternatives you've considered: N/A ### Teachability, Documentation, Adoption, Migration Strategy: N/A

needs more information

### Describe the feature you'd like: When rendering components for test, I often find myself repeating `render(ui, { wrapper: TestApp() })` over and over again. It would be nice to...

enhancement
needs investigation

### Relevant code or config: ```typescript describe('ReactDatepicker', () => { beforeEach(() => (user = userEvent.setup())); it('should not emit act warnings', async () => { const now = new Date(); const...

- `@testing-library/react` version: 14.0.0 - Testing Framework and version: Jest 29.4.3 - DOM Environment: jsdom 29.4.3 ### Relevant code or config: ```js const buttons = await waitFor( screen.getAllByRole("button", { hidden:...

bug