Tags: Global-localhost/react-hooks-testing-library
Tags
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
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
feat: use error boundary to capture useEffect errors (testing-library… …#539) Fixes testing-library#308
feat: use error boundary to capture useEffect errors (testing-library… …#539) Fixes testing-library#308
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
fix: stop appending container elements to document body
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
PreviousNext