Skip to content

Tags: Global-localhost/react-hooks-testing-library

Tags

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

v5.0.0-beta.11

Toggle v5.0.0-beta.11's commit message
Merge branch 'master' into beta

v5.0.0-beta.10

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

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
refactor: async utils (testing-library#537)

* feat: use default values for interval and timeout in async utils

BREAKING CHANGE: `interval` will now default to 50ms in async utils

BREAKING CHANGE: `timeout` will now default to 1000ms in async utils

BREAKING CHANGE: `suppressErrors` has been removed from async utils

* refactor: move timeoutPromise into callAfter helper

* fix: react is not an optional peerDependency

* refactor: return boolean instead of throwing error to handle timeout

v5.0.0-beta.9

Toggle v5.0.0-beta.9's commit message
fix: stop appending container elements to document body

v4.0.1

Toggle v4.0.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
fix: Restore 'RenderHookOptions' type (testing-library#535)

v5.0.0-beta.8

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

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
fix: fixed potential error when hook suspends and current result is a…

…ccessed

BREAKING CHANGE: Adjust types so that react renderer exports don't required extra generic parameter