Skip to content

Tags: becomingdeveloper/react-hooks-testing-library

Tags

v7.0.0

Toggle v7.0.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
feat: Remove node specific dependencies and code to better support te…

…sting in browser environments

* feat: removed filter-console dependency and fallback if process.env is not available (testing-library#624)
* fix: protect import helpers for setting env variables and comment why try/catch is being used

BREAKING CHANGE: `suppressErrorOutput` will now work when explicitly called, even if the `RHTL_DISABLE_ERROR_FILTERING` env variable has been set


Fixes testing-library#617

v6.0.0

Toggle v6.0.0's commit message

Partially verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
We cannot verify signatures from co-authors, and some of the co-authors attributed to this commit require their commits to be signed.
chore: Drop Node 10 support (testing-library#623)

BREAKING CHANGE: Node 10 is no longer supported


Fixes testing-library#621

Co-authored-by: Michaël De Boey <[email protected]>

v5.1.3

Toggle v5.1.3's commit message

Unverified

This user has not yet uploaded their public signing key.
fix(types): Correct overload order for act without strictNullChecks (t…

…esting-library#622)

There was an issue with a patch release, so this manual-releases.md
change is to release a new patch version.

Reference: 09a96d1

v5.1.2

Toggle v5.1.2's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
fix(ssr): Add ability to run SSR tests in pure-node environment (test…

…ing-library#607)

* fix(ssr): div container created only during hydration

It allows to run tests in real node environment, where no DOM global
objects exists.

Fix: testing-library#605

* chore: add xobotyi to hall of fame %)

v5.1.1

Toggle v5.1.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
fix: make library compatible with Node 8 (testing-library#587)

v5.1.0

Toggle v5.1.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
feat: export helper to manually suppress error output (testing-librar…

…y#571)

* feat(console): export helper to manually suppress error output

Fixes testing-library#564

* docs: added docs for `suppressErrorOutput`

* fix(types): fix type of `suppressErrorOutput` to make result callable to restore console

* test: add tests for `suppressErrorOutput` export

* test: fix error suppression disabled tests for other renderers

v5.0.3

Toggle v5.0.3's commit message
fix: fixed potential error when hook suspends and error is accessed

v5.0.2

Toggle v5.0.2's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
fix: only suppress console.error for non-pure imports (testing-librar…

…y#549)

* fix: only suppress console.error for non-pure imports

* refactor: remove unused promise util

* chore: fix tests for error suppression to

* docs: update docs to with more detail on side effects

* refactor: only add suppression in beforeEach block and move restoration to afterEach

* chore: refactor error suppression tests to require in setup so hooks can actually be registered

* chore: added additional tests to ensure pure imports don't add side effects

* refactor: clean up unnecessary additional types in internal console suppression function

* docs: remove link in API reference docs

Fixes testing-library#546

v5.0.0

Toggle v5.0.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
feat: use error boundary to capture useEffect errors (testing-library…

…#539)

Fixes testing-library#308

v5.0.0-beta.12

Toggle v5.0.0-beta.12's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
feat: use error boundary to capture useEffect errors (testing-library…

…#539)

Fixes testing-library#308