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

### Describe the feature you'd like: Add a matcher for [aria-pressed](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/button_role) for checking button toggle states. ### Suggested implementation: A new matcher called `toBePressed` ### Describe alternatives you've considered: An...

enhancement
good first issue

- `@testing-library/jest-dom` version: 6.1.4 - `node` version: 18.17.1 - `jest` version: 29.7.0 - `npm` version: 10.2.0 Other dependencies: ![dependencies](https://github.com/testing-library/jest-dom/assets/84736189/a65ae1d3-9a60-4a14-8dad-c47e3ce4d723) ### Relevant code or config: ```tsx import { render, screen }...

- `@testing-library/jest-dom` version: 6.0.0 - `node` version: 18.16 - `npm` (or `yarn`) version: 9.5.1 ### Relevant code or config: ```ts import '@testing-library/jest-dom/vitest'; import { vitest } from 'vitest'; ``` ```ts...

## Describe the feature you'd like: TL;DR: ```ts expect(element).toContainOneByRole("heading", { name: "Attention" }); ``` Please consider adding jest assertions for each of the eight query types provided by `@testing-library/dom`. Assertions...

enhancement
good first issue

**What**: Fix the invalid GitHub Actions badge URL. Please read the details at https://github.com/badges/shields/issues/8671. Before: After: **Why**: Because the old image URL shows the error image now. **How**: Replace the...

- `@testing-library/jest-dom` version: 6.1.4 - `node` version: 20.3.1 - `vitest` version:~0.32.0 - `npm` version: 9.6.7 ### Relevant code or config: vitest-setup.ts ```js import '@testing-library/jest-dom/vitest'; ``` tsConfig include ``` "include": [...

- `@testing-library/jest-dom` 6.1.4: - `node` >=16: - `jest` (or `vitest`) version:0.2.29 - `npm` (or `yarn`) version: >=1.0.0 ### Relevant code or config: ### What you did: ### What happened: it...

- `@testing-library/jest-dom` version: 6.0.1 - `node` version: 18.13.0 - `npm` (or `yarn`) version: 9.8.1 ### Relevant code or config: ```ts { setupFilesAfterEnv: ['@testing-library/jest-dom'], } ``` ### What you did: Upgrade...

- `@testing-library/jest-dom` version: 5.14.1 - `node` version: 18.18.2 - `jest` (or `vitest`) version: 29.7.0 - `npm` (or `yarn`) version: 1.22.19 (yarn) ### Relevant code or config: ```js expect(inputElement).toHaveValue(''); ``` ###...

I followed the introduction how to use jest with typescript. I created jest.setup.ts file and imported @testing-library/jest-dom. But getting unexpected error and couldn't find a way to solve this issue....