SIGN IN SIGN UP

🐐 Simple and complete React DOM testing utilities that encourage good testing practices.

0 0 0 JavaScript

TAGS

20 tags
v16.3.2

fix: Update 'onCaughtError' type inference in 'RenderOptions' to work with React v19 (#1438) Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Fai <aicest@users.noreply.github.com>

v16.3.1

fix: Switch to trusted publishing (#1437)

v16.3.0

feat: add bernardobelchior as a contributor for code, and doc (#1391) Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>

v16.2.0

feat: Add support for React error handlers (#1354)

v16.1.0

feat: Add support for React 19 (#1367)

v16.0.1

fix: Add support for exactOptionalPropertyTypes in TypeScript (#1351)

v16.0.0

feat: Move `@testing-library/dom` and `@types/react-dom` to peer dependencies (#1305) BREAKING CHANGE: `@testing-library/dom` was moved to a peer dependency and needs to be explicitly installed. This reduces the chance of having conflicting versions of `@testing-library/dom` installed that frequently caused bugs when used with `@testing-library/user-event`. We will also be able to allow new versions of `@testing-library/dom` being used without a SemVer major release of `@testing-library/react` by just widening the peer dependency. `@types/react-dom` needs to be installed if you're typechecking files using `@testing-library/react`. Co-authored-by: Matan Borenkraout <matanbobi@gmail.com>

v15.0.7

fix: Ensure `act` is not `any` when `React.act` is not declared (#1323)

v15.0.6

fix: export new act when available (#1319)

v15.0.5

chore: Adjust tests to workaround 18.3.0 bug (#1315)

v15.0.4

fix: Ensure `renderHook` options extend options for `render` (#1308)

v15.0.3

fix: Don't raise TypeScript errors when hydating `document` (#1304)

v15.0.2

fix: Improve `legacyRoot` error message (#1301)

v14.3.1

fix: Stop using nullish coalescing (#1300)

v15.0.1

fix: Stop using nullish coalescing (#1299)

v15.0.0

Release: 15.0.0 (#1295) BREAKING CHANGE: Minimum supported Node.js version is 18.0 BREAKING CHANGE: New version of `@testing-library/dom` changes various roles. Check out the changed tests in https://github.com/testing-library/dom-testing-library/commit/2c570553d8f31b008451398152a9bd30bce362b3 to get an overview about what changed.

v14.3.0

feat: Add support for React 19 Canary (#1294)

v14.2.2

fix: Remove unused types (#1287)

v14.2.1

docs: add trappar as a contributor for code (#1273) * docs: update README.md * docs: update .all-contributorsrc --------- Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>

v14.2.0

docs: add yinm as a contributor for code (#1269) * docs: update README.md * docs: update .all-contributorsrc --------- Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>