Skip to content

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

Tags

v8.0.1

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
fix(server): remove act around server renderer to fix support for old…

…er versions of react

* refactor(server/pure): remove unnecessary type annotation

* feat: add ssr.test.ts

This adds a new test to verify that renderHook can be called in an
SSR-like environment based on the changes implemented in #607.

* chore: update contributors table

* refactor: remove act call in render in sever/pure

@mpeyper explained how this `act` call in server rendering is not really
necessary so we can remove it.

v8.0.0

chore(docs): add note about React 18 support

v8.0.0-alpha.1

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
feat(async-utils): async utils advance fake timer automatically when …

…waiting

Fixes #631

* add jestFakeTimersAreEnabled and use it to detect faketimer in createTimeoutController (#688)
* fix fakeTimer problem
* add new fakeTimer test and revise the function
* add advanceTime
* revise the advanceTime
* use  jest.advanceTimersByTime
* change timeout type
* fix converage and revise type
* test(fake-timers): add more tests to test suite for fake timers
* fix the code after code review and clean up
* fix the test timeout is false
* clean up
* fix coverage
* add skip for pass checkers
* add comment
* test(async-utils): enable test to test CI fix
* test(async-utils): combine fake timer tests with async tests
* refactor(async-utils): Move DEFAULT_TIMEOUT out of timeout controller
* refactor(async-utils): move fake timer advancement into seperate utility
* refactor(async-utils): simplify fake timer advancement logic
* docs: add chris110408 as a contributor for code
* refactor(async-utils): only advance timers on a single timeoutController

BREAKING CHANGE: tests that used to manually advance fake timers and use async utilities may now
fail as timer would advance further


Co-authored-by: Lei Chen <leichen@Leis-MacBook-Pro.local>
Co-authored-by: Michael Peyper <mpeyper7@gmail.com>

v7.0.2

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
fix(async-utils): prevent timeout and interval checks in wait from le…

…aving open handles (#682)

* fix(async-utils): prevent timeout and interval checks in wait from leaving open handles

* refactor(async-utils): rename timeoutSignal to timeoutController

v7.0.1

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
fix(types): fix `cleanup` return type to match `async` implementation

* fix(types): fix `cleanup` return type to match `async` implementation

* test: refactor tests to reduce duplication for different renderers

* test: refactor `hydratedServerRenderer` and added comment for clarity about it

v7.0.0

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 (#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 #617

v6.0.0

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 (#623)

BREAKING CHANGE: Node 10 is no longer supported


Fixes #621

Co-authored-by: Michaël De Boey <info@michaeldeboey.be>

v5.1.3

Unverified

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

…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

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 (#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: #605

* chore: add xobotyi to hall of fame %)

v5.1.1

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 (#587)