Skip to content

Tags: daotoad/react-hooks-testing-library

Tags

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

v5.0.0-beta.7

Toggle v5.0.0-beta.7's commit message
fix: include render utils in RenderHook type

v5.0.0-beta.6

Toggle v5.0.0-beta.6's commit message
fix: constrain TOptions to be an object instead of an empty interface

v5.0.0-beta.5

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

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
fix: display returned function names correctly in stack traces (testi…

…ng-library#528)

Refactors for consistency.

* refactor: change functions to be more consistent between regular functions and arrow functions
* refactor: rename testHook to be testHarness for consistency
* refactor: remove default exports for consistency
* fix: display returned function names correctly in stack traces
* refactor: remove variable assignment in function name workaround

Co-authored-by: Jonathan Peyper <[email protected]>
Co-authored-by: Jonathan Peyper <[email protected]>

v5.0.0-beta.4

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

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
fix: Type for options in autodetected renderer was incorrectly inferr…

…ing any passed type (testing-library#527)

Changed `renderHook` in `ReactHooksRenderer` type to not use a generic for options but rather the react specific `RendererOptions`.

Moved `ReactHooksRenderer` into react specific types as all auto-detected renders are react renderers.  All modules are currently exporting both the shared types and the react types so this a non-breaking change.

v5.0.0-beta.3

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

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Merge pull request testing-library#526 from testing-library/bugfix/be…

…ta-pure-typeerror

fix: ReactHooksRenderer renderHook was not expecting arguments