Tags: becomingdeveloper/react-hooks-testing-library
Tags
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
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]>
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 %)
fix: make library compatible with Node 8 (testing-library#587)
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
PreviousNext