jest-dom
jest-dom copied to clipboard
:owl: Custom jest matchers to test the state of the DOM
- `@testing-library/jest-dom` version: 5.16.2 - `node` version: v14.17.4 - `npm` (or `yarn`) version: 6.14.14 * `dom-testing-library` version: (if applicable) * `react-testing-library` version: 12.1.3 ### Relevant code or config: ```js expect(document.querySelector('input')).toBeChecked()...
- `@testing-library/jest-dom` version: 5.16.4 - `node` version: v10.20.1 (CodeSandbox) ### Relevant code or config: Implementation ```js export const PossiblyAsync = ({ image }) => { if (image.then) { return ;...
**What**: Update several out-of-date links to Jest configuration and matcher docs in README.md. **Why**: The original links redirect to the correct pages, but lose the anchor (e.g. `#setupfilesafterenv-array`). The updated...
- `@testing-library/jest-dom` version: v5.1.1 - `@testing-library/react` version: v9.4.0 - `node` version: v12.14.1 - `npm` (or `yarn`) version: v1.21.1 ### Relevant code or config: ```js import styled from 'styled-components'; const Container...
- `@testing-library/jest-dom` version: 5.16.4 (codesandbox), 5.16.2 (local) - `node` version: 10.20.1 (codesandbox), 16.13.1 (local) - `npm` (or `yarn`) version: not sure what code sandbox use, I'm using [email protected] in my...
- `@testing-library/jest-dom` version: "4.2.4" - `node` version: 12.16.1 - `npm` (or `yarn`) version: yarn 1.22.4 * `dom-testing-library` version: (if applicable) * `react-testing-library` version: "9.5.0" * `antd` version: "4.7.0" ### Relevant...
- `@testing-library/jest-dom` version: 5.16.1 - `node` version: v16.13.1 - `yarn` version: 1.22.17 ### Relevant code or config: ```js import { expect } from '@jest/globals'; import '@testing-library/jest-dom'; expect(container).toHaveAttribute('hidden'); ``` ### What...
"dependencies": { "@testing-library/jest-dom":"^5.16.4", "@testing-library/react": "^13.2.0", "@testing-library/user-event": "^13.5.0", "react": "^18.1.0", "react-dom": "^18.1.0", "react-scripts": "5.0.1", "web-vitals": "^2.1.4" } - `@testing-library/jest-dom` version: "^5.16.4", - `node` version: v16.15.0 - `npm` (or `yarn`) version: 8.5.5...
### Describe the feature you'd like: **API** ```typescript expect(HTMLElement).toAppearBefore(HTMLElement) ``` This assertion would check that one DOM node appears before the other. This is important if say, you have two...
- `@testing-library/jest-dom` version: any version since 5.11.10 - `node` version: 16.15.0 - `npm` version: 7.2.0 - `aurelia-testing` version: 1.1.0 ### Relevant code or config: We are using the default jest...