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

**What**: Replace `lodash` package with `lodash.isequalwith`. **Why**: Reduced downloadsize when only using the specific package **How**: Replace the package in `package.json` and update import statements **Checklist**: - [x] Documentation -...

Hello everyone We are providing a pre-release version of jsdom. Please see the [changelog](https://github.com/jsdom/jsdom/blob/main/Changelog.md#2700-beta0) for details, try it out in your environment, and give us your feedback in https://github.com/jsdom/jsdom/issues/3864.

**What**: Small fix on README.md **Why**: It might be due to confusion caused by an incorrect file path. **How**: I changed `vitest.setup.ts` to `vitest-setup.ts`. **Checklist**: - [x] Documentation - [...

- `@testing-library/jest-dom` version: 6.6.3 - `node` version: v22.13.1 - `jest` (or `vitest`) version: 3.0.5 - `npm` (or `yarn`) version: [email protected] ### Relevant code or config: ``` ; .npmrc hoist=false ```...

- `@testing-library/jest-dom` version: 6.6.3 - `node` version: 22.14.0 - `vitest` version: 3.0.8 - `yarn` version: 4.7.0 ### Relevant code or config: ```html ``` ```js expect( queryByRole("region", { name: "inert demo",...

Hi everyone, I am looking to load a css file at the beginning of one of my test so that I can check if my ui element that I am...

**What**: Since you're currently mentioning `"./vitest.setup.ts"`, I figured that you're fine with using TS and this change does so consistently. (And once that is done, it's no longer necessary to...

- `@testing-library/jest-dom` version: 6.6.2 - `node` version: 20.18.0 - `vitest` version: 2.1.3 - `npm` version: 10.9.0 ### Relevant code or config: ```js render(); const button = screen.getByRole('button'); expect(button).toHaveStyle({ 'background-color': '#3E8800'...

- `@testing-library/jest-dom` version: 6.6.3 - `node` version: 22.13 - `jest` (or `vitest`) version: Vitest (3.0.1) - `npm` (or `yarn`) version: pnpm 9.15.4 ### Relevant code or config: HTML looks like...

**What**: New `toBePressed` matcher is added **Why**: Closes #203 **Checklist**: - [x] Documentation - [x] Tests - [x] Updated Type Definitions - [x] Ready to be merged In my opinion...