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

IN my react component i have a react data table. the data of which is fetched from axios get call. for testing of this component i have mocked the response...

question

- `@testing-library/react` version: 13.3.0 - Testing Framework and version: [email protected], [email protected], [email protected] ### Relevant code or config: ```js // in app.test.js import '@testing-library/react/dont-cleanup-after-each'; afterEach(cleanup); it('renders the app without errors', done...

needs more information

- `@testing-library/react` version: 13.4.0 - Testing Framework and version: [email protected] - DOM Environment: [email protected] - node: 16.14.2 - react: 18.2.0 ### Relevant code or config: ```js render(); await screen.findByText('Failed!'); //assertion...

- `@testing-library/react` version: 13.4.0 - Testing Framework and version: [email protected] - DOM Environment: [email protected] - node: 16.14.2 - react: 18.2.0 ### Relevant code or config: ```js render(); //generates an unexpected...

I have a react17 project. Installation results in peerDependency error. The latest version (v13.3.0)'s `package.json` contains ```"peerDependencies": { "react": "^18.0.0", "react-dom": "^18.0.0" }, ``` You need to update the doco...

- `@testing-library/react` version: 12.1.5 - Testing Framework and version: [email protected] - [email protected] ### Relevant code or config: Cannot submit full code but this should provide an idea of what is...

needs more information

### What is your question: How can I migrate this code from `@testing-library/react-hooks` to `@testing-library/react` to use react18 and use the ssr environment? old code ```ts import { renderHook as...

question

- `@testing-library/react` version: 13.3.0 - Testing Framework and version: [email protected] - DOM Environment: jsdom ### Relevant code or config: If I write a small `renderHook` test and log the `result.current`...

needs more information

This issue was first created in facebook/react, see https://github.com/facebook/react/issues/24854. The rational behind why we want to disable act warnings: https://github.com/facebook/react/issues/23197 ---- Potentially related to using jest. Didn't confirm. React version:...

needs more information

### Describe the feature you'd like: As a user of react 18 with NextJS (with app directory), I would like to render async server components example: // Page.tsx ```typescript const...

enhancement
needs investigation