jest-dom
jest-dom copied to clipboard
:owl: Custom jest matchers to test the state of the DOM
### Describe the feature you'd like: I'm testing a combobox element with a behavior that is quite similar to the address bar in the browser. That is, when you start...
### Describe the feature you'd like: Assert that an ARIA table is currently sorted by a certain column in certain order. ### Suggested implementation: Check that an ARIA `columnheader` with...
### Describe the feature you'd like: This should be a fairly short and sweet conversation (and possibly related to #201). I am a developer working on a fairly complex enterprise...
- `@testing-library/jest-dom` version: 5.14.1 - `node` version: any - `npm` (or `yarn`) version: any ### Problem description: Used dependency `[email protected]` has a security vulnerability. https://snyk.io/vuln/npm:ansi-regex ### Suggested solution: Update `ansi-regex`...
**What**: Add README docs on `toBeVisible` matcher not checking the `aria-hidden` attribute. **Why**: For consistency with the `aria-disabled` note added earlier in https://github.com/testing-library/jest-dom/pull/303 **Checklist**: N/A
I was working on something using the `````` element and was looking to test whether the inner text was visible or not. What I found out while looking through the...
toHaveStyle() test "Uses px as the default unit" always yields positive result + isSubset() is leaky
- `@testing-library/jest-dom` version: current master branch, I guess 5.14.1 - `node` version: v12.13.1 - `npm` (or `yarn`) version: 6.12.1 ### Relevant code or config: Just branch off the current `master`...
- `@testing-library/jest-dom` version: 5.13.0 - `node` version: 14.15.0 - `npm` (or `yarn`) version: `yarn` ### Relevant code or config: Given this helper method. ```ts const formatter = Intl.NumberFormat('de-DE', { style:...
**What**: This PR aim to fix https://github.com/testing-library/jest-dom/issues/364. **Why**: In my use case on a react app, i'm using a constant that is a number for a default value of an...
### Relevant code or config: ```js expect(svgElement).toBeVisible(); ``` ### What happened: ```received value must be an HTMLElement or an SVGElement.``` ### Problem description: Several Testing Libraries are having their TypeScript...