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: I'd like an assertion for the `aria-errormessage` attribute. It accepts a list of id strings formatted identically to the format `aria-describedby` accepts. https://www.w3.org/TR/wai-aria-1.1/#aria-errormessage Browser...

Hi, i am having some typing issues - `@testing-library/jest-dom` version: - `node` version: 12.14.1 - `npm` (or `yarn`) version: 6.13.4 - `WebStorm 2020.1.1` - `Next 9.3.5` ### Relevant code or...

### Describe the feature you'd like: In the light of projects like [Reach UI](https://github.com/reach/reach-ui) and [react-beautiful-dnd](https://github.com/atlassian/react-beautiful-dnd) and others like them, that have a focus on accessibility, I was thinking that...

help wanted
question
needs discussion

### Describe the feature you'd like: I'm testing composite components that use `aria-activedescendant` to move focus. I would like to test whether some item is "virtually" focused or not after...

enhancement
good first issue

* `jest-dom` version: **2.1.0** * `node` version: **8.9.4** * `npm` version: **6.4.18** * `dom-testing-library` version: **3.11.1** * `react-testing-library` version: **5.2.0** ### Relevant code or config: Copied & modified from your...

### Describe the feature you'd like: A `toHaveRole` matcher that uses a similar implementation to `@testing-library`'s described [here](https://testing-library.com/docs/dom-testing-library/api-queries#byrole). In other words, checking implicit roles in addition to `aria` roles (i.e....

needs discussion

### Describe the feature you'd like: Being new to testing-library, it all is a bit overwhelming. The long list of matchers `jest-dom` introduces, also makes it harder to start out....

needs discussion

I would love to have a better output if a `toBeInDocument()` fails. There are actually two different cases: ## Checking for absence with `.not.toBeInDocument()` In this case, the error message...

### Describe the feature: Would it make sense to extend the current matchers to handle NodeLists? Is there a need for this? I was thinking about `queryAllBy*` and `querySelectorAll` and...

needs discussion

### Describe the feature you'd like: Much like https://github.com/testing-library/jest-dom/issues/91 it would be nice if `toHaveValue` also supported asymmetricMatch. for expect.stringContaining or expect.stringMatching etc. ### Suggested implementation: use this.equal instead of...