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

- `@testing-library/react` version: 14.0.0 - Testing Framework and version: - Jest: 29.6.2 - jest-environment-jsdom: 29.6.2 - Other relevant dependencies: - jest_workaround: 0.79.19 - jest-environment-jsdom: 29.6.2 - @swc/core: 1.3.71 - @swc/jest:...

needs more information

- `@testing-library/react` version: v14.0.0 - Testing Framework and version: - `jest` version 29.5.0 - DOM Environment: - `jsdom` version 29.5.0 ### Relevant code or config: Here is the test code...

- `@testing-library/react` version: 14.0.0 - Testing Framework and version: vitest(0.32.2) - DOM Environment: jsdom(22.1.0) ### Relevant code or config: ```ts describe("SearchBar", () => { afterEach(cleanup) it("Rendered correctly", () => {...

I have a custom hook that uses a Context Provider for global state management. I am passing a dispatch and data from the state taken from the context inside the...

question

- `@testing-library/react` version: 12.1.2 - Testing Framework and version: Jest 27.4.5 - DOM Environment: jsdom: 16.6.0 react: 17.0.2 ### What you did: My team is not yet ready to upgrade...

bug
BREAKING CHANGE

- `@testing-library/react` version: 13.4.0 - Testing Framework and version: "@nrwl/jest": "14.8.6" - DOM Environment: "@testing-library/jest-dom": "5.16.5" ### Relevant code or config: ```ts instance.getByRole('button', { name: 'tests.actions.add', hidden: true }) ).toBeEnabled();...

### Describe the feature you'd like: When using `waitFor` and sinon fake timers enabled, the test gets stuck and eventually times out. This seems to be a consequence of https://github.com/testing-library/react-testing-library/commit/f78839bf4147a777a823e33a429bcf5de9562f9e...

when I run my unit tests to test componernts, I recieve errors similar to this one in multiple places: `TypeError: (0 , _fileName.useCustomHook) is not a function` when I test...

question

**ISSUES WHICH ARE QUESTIONS WILL BE CLOSED** It's going to sound like a question but: Do you have somewhere on the roadmap a feature to allow like in the example...

**Is your feature request related to a problem? Please describe.** I am trying to test that the inputs in my form have correct inline validation errors set as aria descriptions....