react-hooks-testing-library icon indicating copy to clipboard operation
react-hooks-testing-library copied to clipboard

🐏 Simple and complete React hooks testing utilities that encourage good testing practices.

Results 63 react-hooks-testing-library issues
Sort by recently updated
recently updated
newest added

After installation and some unit test for my custom hook I receive this error message after run application. I've tried to reinstall all packages, remove node_modules ... didn't work. Does...

question
Needs reproduction

Bumps [kcd-scripts](https://github.com/kentcdodds/kcd-scripts) from 11.2.2 to 12.3.0. Release notes Sourced from kcd-scripts's releases. v12.3.0 12.3.0 (2022-08-30) Features update dependencies (#228) (ce96bf4) v12.2.1 12.2.1 (2022-08-24) Bug Fixes prettier: jsxBracketSameLine -> bracketSameLine (#230)...

dependencies
javascript

I'm trying to spy on a mocked function that is passed into a hook as a n argument. The function is `analytics.identify()` and `oktaAuth.token.getUserInfo()`. ``` Expected number of calls: >=...

question

**What**: Allowing the react-error-boundary dependency to be newer than 3.1.0 **Why**: Its impossible to get correct package resolution without this for users who would like to use **How**: I changed...

Passing new props to `rerender` doesn't work, please let me know if i'm doing anything wrong, thx package.json ```ssh "@testing-library/jest-dom": "^5.16.5", "@testing-library/react": "^13.4.0", ``` hook ```jsx export const useTriggerFocus =...

- `react-hooks-testing-library` version: `8.0.1` - `react` version: `16.13.1` - `react-dom` version: `16.13.1` React Magnetic DI is a library that allows dependency injection in React components and functions for testing purposes....

bug

Dependencies: - react 17.0.2 - @testing-library/[email protected] - @testing-library/[email protected] I have the following hook ``` function usePlan(): { loading: boolean, plan?: Plan, error?: Error } { const [loading, setLoading] = useState(true);...

question

Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.11.0 to 5.54.1. Release notes Sourced from @​typescript-eslint/parser's releases. v5.54.1 5.54.1 (2023-03-06) Bug Fixes typescript-estree: do not call export of clearProgramCache (#6540) (181e705) v5.54.0 5.54.0 (2023-02-27) Bug...

dependencies
javascript

Bumps [eslint](https://github.com/eslint/eslint) from 7.32.0 to 8.35.0. Release notes Sourced from eslint's releases. v8.35.0 Features 8e34a04 feat: add afterHashbangComment option to lines-around-comment rule (#16920) (SUZUKI Sosuke) c8c0c71 feat: Move all and...

dependencies
javascript

Bumps [kcd-scripts](https://github.com/kentcdodds/kcd-scripts) from 11.2.2 to 13.0.0. Release notes Sourced from kcd-scripts's releases. v13.0.0 13.0.0 (2023-01-28) Bug Fixes Bump Jest to 29.x and drop support for Node.js 12.x (#233) (d7d25b0) BREAKING...

dependencies
javascript