Workaround showcase for testing a useContext-based React component via Enzyme. Inspired by enzymejs/enzyme#2176 (comment).
- Clone this repository
cd
inside the cloned folder- Execute
npm install
- Execute
npm run build
- Execute
npm run test
Workaround showcase for testing a useContext-based React component via Enzyme.
TypeScriptMIT
Workaround showcase for testing a useContext-based React component via Enzyme. Inspired by enzymejs/enzyme#2176 (comment).
cd
inside the cloned foldernpm install
npm run build
npm run test