jest-dom icon indicating copy to clipboard operation
jest-dom copied to clipboard

:owl: Custom jest matchers to test the state of the DOM

Results 159 jest-dom issues
Sort by recently updated
recently updated
newest added

- `@testing-library/jest-dom` version: 6.1.3 - `node` version: 18.0.0 - `jest` (or `vitest`) version: 29.6.2 - `npm` (or `yarn`) version: 9.5.1 * `react-testing-library` version: 14.0.0 ### Relevant code or config: tsconfig.json...

- `@testing-library/jest-dom` version: 6.1.3 - `node` version: 18.15.0 - `jest` (or `vitest`) version: vitest 0.34.4 - `npm` (or `yarn`) version: npm 9.5.0 ### Relevant code or config: ```js import '@testing-library/jest-dom/vitest';...

### Describe the feature you'd like: testing-library exposes the `isInaccessible` function, but using it to test for accessibility leads to a less than ideal testing experience. It would be nice...

- `@testing-library/jest-dom` version: 6.1.3 - `node` version: 18.17 - `jest` (or `vitest`) version: 29.7.0 - `npm` (or `yarn`) version: 10.0 ### Relevant code or config: ```js jest.unstable_mockModule("./xxxx-list/index.js", () => ({...

I followed the exact instructions as in your readme, and using the latest version of the library, 1. Created a setupTests.ts file, with the single line `import "@testing-library/jest-dom"` 2. Made...

------------ 👆 Click "Preview"! Issues on GitHub are intended to be related to problems with the library itself and feature requests so we recommend not using this medium to ask...

Following the example from tailwindcss: https://tailwindcss.com/docs/hover-focus-and-other-states#differentiating-nested-groups. Item that should be invisible is still visible. just to be sure the config of the tailwind is ok I followed https://stackoverflow.com/questions/71010317/react-testing-library-cant-read-styles-using-tailwind-css-classes "jsdom": "22.1.0",...

**What**: Upgrade lodash from version 4.17.15 to 4.17.21 to fix https://snyk.io/test/npm/lodash/4.17.15 **Why**: Upgrade to a version without the known vulnerability. There was [a previous PR](https://github.com/testing-library/jest-dom/pull/337) 2 years ago but that...

**What**: updated chalk to version 4. Nothing much has changed in this version, except for bumping the minimum node version to 10. [Release notes](https://github.com/chalk/chalk/releases/tag/v4.0.0) **Why**: this change reduces the number...

- `@testing-library/jest-dom` version: 5.17 ### Relevant code or config: ```html ``` ```js const dropdown = screen.getByTestId("dropdown"); expect(dropdown).toHaveDisplayValue("Apple"); ``` ``` Expected: ["Apple"] Received: [""] ``` ### Problem description: `toHaveDisplayValue` produces the...