jest-dom
jest-dom copied to clipboard
:owl: Custom jest matchers to test the state of the DOM
We've been experimenting with using Node.js's [test runner](https://nodejs.org/api/test.html) as an alternative to Jest. It was initially added in `v18` but marked as stable in `v20`. It's been working great for...
**What**: Fixes https://github.com/testing-library/jest-dom/issues/620 **Checklist**: - [x] Documentation - [x] Ready to be merged
- `@testing-library/jest-dom` version: 6.4.8 - `node` version: 20.14.0 - `vitest` version: 2.0.4 - `pnpm` version: 9.4.0 - `@testing-library/react` version: 16.0.0 ### Relevant code or config: ```js describe('ellipseAddressJsx', () => {...
**What**: This PR adds a test and special case logic to handle the somewhat common case of checkboxes with hidden inputs. See the **why** section below for an example. We...
- `@testing-library/jest-dom` version: 6.6.2 - `node` version: 20.10.0 - vitest version: 2.1.3 - `npm` (or `yarn`) version: 10.2.3 ### Relevant code or config / Reproduction: minimun reproduce demo: https://stackblitz.com/edit/vitejs-vite-ydhnrx?file=src%2FApp.test.tsx ###...
**What**: https://github.com/testing-library/jest-dom/issues/645 Fix a vitest typing issue when using global mode **Why**: If there is no import of "vitest" in the whole project (for example, vitest is in globalMode), the...
**What**: Continues effort from https://github.com/testing-library/jest-dom/pull/593; further improves on https://github.com/testing-library/jest-dom/issues/592 **Why**: Since we're only using one method from the entire lodash package, we can dramatically reduce @testing-library/jest-dom's install footprint (by roughly...
**What**: As my first contribution (ever) on an open source project, I decided to: - update the egghead link which is actually broken. - update the git command to create...
':' is invalid in windows, so the file's are not created/deleted immediately. Intellij IDEA 2024.2.1 (Ultimate edition) "@testing-library/jest-dom": "^6.5.0" ``` [647239] WARN - #c.i.o.v.i.l.LocalFileSystemBase - Illegal char at index 115:...
**What**: Replaced usages of lodash utility functions with their equivalents from [es-toolkit](https://github.com/toss/es-toolkit), and removed lodash from dependencies. [Storybook also use es-toolkit](https://github.com/search?q=repo%3Astorybookjs%2Fstorybook%20es-toolkit&type=code) **Why**: es-toolkit offers modern, modular alternatives that align with...