/enzyme-usecontext-issue

Workaround showcase for testing a useContext-based React component via Enzyme.

Primary LanguageTypeScriptMIT LicenseMIT

enzyme-usecontext-issue

Workaround showcase for testing a useContext-based React component via Enzyme. Inspired by enzymejs/enzyme#2176 (comment).

How-to

  1. Clone this repository
  2. cd inside the cloned folder
  3. Execute npm install
  4. Execute npm run build
  5. Execute npm run test