├── .all-contributorsrc ├── .eslintignore ├── .eslintrc ├── .gitattributes ├── .github ├── ISSUE_TEMPLATE.md ├── ISSUE_TEMPLATE │ ├── ---bug-report.md │ ├── ---feature-request.md │ └── --support-question.md ├── PULL_REQUEST_TEMPLATE.md ├── dependabot.yml └── workflows │ └── validate.yml ├── .gitignore ├── .huskyrc.js ├── .npmrc ├── .prettierignore ├── .prettierrc.js ├── CHANGELOG.md ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE.md ├── README.md ├── disable-error-filtering.js ├── docs ├── api-reference.md ├── installation.md ├── introduction.md └── usage │ ├── advanced-hooks.md │ ├── basic-hooks.md │ └── ssr.md ├── doczrc.js ├── dont-cleanup-after-each.js ├── jest.config.js ├── netlify.toml ├── other ├── MAINTAINING.md └── manual-releases.md ├── package.json ├── public └── ram.png ├── scripts ├── generate-submodules.ts └── tsconfig.json ├── src ├── __tests__ │ ├── asyncHook.fakeTimers.test.ts │ ├── asyncHook.test.ts │ ├── autoCleanup.disabled.test.ts │ ├── autoCleanup.noAfterEach.test.ts │ ├── autoCleanup.noProcessEnv.test.ts │ ├── autoCleanup.pure.test.ts │ ├── autoCleanup.test.ts │ ├── autoDetectRenderer.test.ts │ ├── cleanup.test.ts │ ├── customHook.test.ts │ ├── errorHook.test.ts │ ├── errorSuppression.disabled.test.ts │ ├── errorSuppression.noAfterEach.test.ts │ ├── errorSuppression.noBeforeEach.test.ts │ ├── errorSuppression.noProcessEnv.test.ts │ ├── errorSuppression.pure.test.ts │ ├── errorSuppression.test.ts │ ├── hydrationErrors.test.ts │ ├── resultHistory.test.ts │ ├── ssr.test.ts │ ├── suspenseHook.test.ts │ ├── useContext.test.tsx │ ├── useEffect.test.ts │ ├── useMemo.test.ts │ ├── useReducer.test.ts │ ├── useRef.test.ts │ ├── useState.test.ts │ └── utils │ │ └── runForRenderers.ts ├── core │ ├── asyncUtils.ts │ ├── cleanup.ts │ ├── console.ts │ └── index.ts ├── dom │ ├── index.ts │ └── pure.ts ├── helpers │ ├── createTestHarness.tsx │ ├── createTimeoutController.ts │ └── error.ts ├── index.ts ├── native │ ├── index.ts │ └── pure.ts ├── pure.ts ├── server │ ├── index.ts │ └── pure.ts └── types │ ├── index.ts │ └── react.ts └── tsconfig.json /.all-contributorsrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/.all-contributorsrc -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/.eslintignore -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/.eslintrc -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto eol=lf 2 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/.github/ISSUE_TEMPLATE.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/---bug-report.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/.github/ISSUE_TEMPLATE/---bug-report.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/---feature-request.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/.github/ISSUE_TEMPLATE/---feature-request.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/--support-question.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/.github/ISSUE_TEMPLATE/--support-question.md -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/.github/PULL_REQUEST_TEMPLATE.md -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/workflows/validate.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/.github/workflows/validate.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/.gitignore -------------------------------------------------------------------------------- /.huskyrc.js: -------------------------------------------------------------------------------- 1 | module.exports = require('kcd-scripts/husky') 2 | -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | package-lock=false 2 | legacy-peer-deps=true 3 | -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | coverage 3 | lib 4 | .docz 5 | site 6 | -------------------------------------------------------------------------------- /.prettierrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/.prettierrc.js -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/LICENSE.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/README.md -------------------------------------------------------------------------------- /disable-error-filtering.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/disable-error-filtering.js -------------------------------------------------------------------------------- /docs/api-reference.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/docs/api-reference.md -------------------------------------------------------------------------------- /docs/installation.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/docs/installation.md -------------------------------------------------------------------------------- /docs/introduction.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/docs/introduction.md -------------------------------------------------------------------------------- /docs/usage/advanced-hooks.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/docs/usage/advanced-hooks.md -------------------------------------------------------------------------------- /docs/usage/basic-hooks.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/docs/usage/basic-hooks.md -------------------------------------------------------------------------------- /docs/usage/ssr.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/docs/usage/ssr.md -------------------------------------------------------------------------------- /doczrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/doczrc.js -------------------------------------------------------------------------------- /dont-cleanup-after-each.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/dont-cleanup-after-each.js -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/jest.config.js -------------------------------------------------------------------------------- /netlify.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/netlify.toml -------------------------------------------------------------------------------- /other/MAINTAINING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/other/MAINTAINING.md -------------------------------------------------------------------------------- /other/manual-releases.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/other/manual-releases.md -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/package.json -------------------------------------------------------------------------------- /public/ram.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/public/ram.png -------------------------------------------------------------------------------- /scripts/generate-submodules.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/scripts/generate-submodules.ts -------------------------------------------------------------------------------- /scripts/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/scripts/tsconfig.json -------------------------------------------------------------------------------- /src/__tests__/asyncHook.fakeTimers.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/src/__tests__/asyncHook.fakeTimers.test.ts -------------------------------------------------------------------------------- /src/__tests__/asyncHook.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/src/__tests__/asyncHook.test.ts -------------------------------------------------------------------------------- /src/__tests__/autoCleanup.disabled.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/src/__tests__/autoCleanup.disabled.test.ts -------------------------------------------------------------------------------- /src/__tests__/autoCleanup.noAfterEach.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/src/__tests__/autoCleanup.noAfterEach.test.ts -------------------------------------------------------------------------------- /src/__tests__/autoCleanup.noProcessEnv.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/src/__tests__/autoCleanup.noProcessEnv.test.ts -------------------------------------------------------------------------------- /src/__tests__/autoCleanup.pure.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/src/__tests__/autoCleanup.pure.test.ts -------------------------------------------------------------------------------- /src/__tests__/autoCleanup.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/src/__tests__/autoCleanup.test.ts -------------------------------------------------------------------------------- /src/__tests__/autoDetectRenderer.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/src/__tests__/autoDetectRenderer.test.ts -------------------------------------------------------------------------------- /src/__tests__/cleanup.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/src/__tests__/cleanup.test.ts -------------------------------------------------------------------------------- /src/__tests__/customHook.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/src/__tests__/customHook.test.ts -------------------------------------------------------------------------------- /src/__tests__/errorHook.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/src/__tests__/errorHook.test.ts -------------------------------------------------------------------------------- /src/__tests__/errorSuppression.disabled.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/src/__tests__/errorSuppression.disabled.test.ts -------------------------------------------------------------------------------- /src/__tests__/errorSuppression.noAfterEach.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/src/__tests__/errorSuppression.noAfterEach.test.ts -------------------------------------------------------------------------------- /src/__tests__/errorSuppression.noBeforeEach.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/src/__tests__/errorSuppression.noBeforeEach.test.ts -------------------------------------------------------------------------------- /src/__tests__/errorSuppression.noProcessEnv.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/src/__tests__/errorSuppression.noProcessEnv.test.ts -------------------------------------------------------------------------------- /src/__tests__/errorSuppression.pure.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/src/__tests__/errorSuppression.pure.test.ts -------------------------------------------------------------------------------- /src/__tests__/errorSuppression.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/src/__tests__/errorSuppression.test.ts -------------------------------------------------------------------------------- /src/__tests__/hydrationErrors.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/src/__tests__/hydrationErrors.test.ts -------------------------------------------------------------------------------- /src/__tests__/resultHistory.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/src/__tests__/resultHistory.test.ts -------------------------------------------------------------------------------- /src/__tests__/ssr.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/src/__tests__/ssr.test.ts -------------------------------------------------------------------------------- /src/__tests__/suspenseHook.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/src/__tests__/suspenseHook.test.ts -------------------------------------------------------------------------------- /src/__tests__/useContext.test.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/src/__tests__/useContext.test.tsx -------------------------------------------------------------------------------- /src/__tests__/useEffect.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/src/__tests__/useEffect.test.ts -------------------------------------------------------------------------------- /src/__tests__/useMemo.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/src/__tests__/useMemo.test.ts -------------------------------------------------------------------------------- /src/__tests__/useReducer.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/src/__tests__/useReducer.test.ts -------------------------------------------------------------------------------- /src/__tests__/useRef.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/src/__tests__/useRef.test.ts -------------------------------------------------------------------------------- /src/__tests__/useState.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/src/__tests__/useState.test.ts -------------------------------------------------------------------------------- /src/__tests__/utils/runForRenderers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/src/__tests__/utils/runForRenderers.ts -------------------------------------------------------------------------------- /src/core/asyncUtils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/src/core/asyncUtils.ts -------------------------------------------------------------------------------- /src/core/cleanup.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/src/core/cleanup.ts -------------------------------------------------------------------------------- /src/core/console.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/src/core/console.ts -------------------------------------------------------------------------------- /src/core/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/src/core/index.ts -------------------------------------------------------------------------------- /src/dom/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/src/dom/index.ts -------------------------------------------------------------------------------- /src/dom/pure.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/src/dom/pure.ts -------------------------------------------------------------------------------- /src/helpers/createTestHarness.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/src/helpers/createTestHarness.tsx -------------------------------------------------------------------------------- /src/helpers/createTimeoutController.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/src/helpers/createTimeoutController.ts -------------------------------------------------------------------------------- /src/helpers/error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/src/helpers/error.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/native/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/src/native/index.ts -------------------------------------------------------------------------------- /src/native/pure.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/src/native/pure.ts -------------------------------------------------------------------------------- /src/pure.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/src/pure.ts -------------------------------------------------------------------------------- /src/server/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/src/server/index.ts -------------------------------------------------------------------------------- /src/server/pure.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/src/server/pure.ts -------------------------------------------------------------------------------- /src/types/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/src/types/index.ts -------------------------------------------------------------------------------- /src/types/react.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/src/types/react.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/testing-library/react-hooks-testing-library/HEAD/tsconfig.json --------------------------------------------------------------------------------