React jest test with enzyme error

Posted by Jennifer | Updated on

Just solved the problem by first installing enzyme-to-json; npm install --save-dev enzyme-to-json

imported toJson inside my test_file.js

If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@] Your question and answer will appear on and help other developers.

Related Questions & Answers