I am trying to implement enzyme-to-json in my project with enzyme and jest and when I ran test for one of my components, I have come across the following issue:
I am suspecting this has to do with version compatibility of those packages. But I can't figure out what version I should choose. It could be some other problems that I am not aware of...
Btw, the test case ran without problem without enzyme-to-json being installed and configured. I would just like to implement it so that the snapshot can be formatted properly.
I am trying to implement enzyme-to-json in my project with enzyme and jest and when I ran test for one of my components, I have come across the following issue:
I have set up my jest like this:
And I have run
npm test HelpTooltip
from the terminal:I am using the following versions of packages:
I am suspecting this has to do with version compatibility of those packages. But I can't figure out what version I should choose. It could be some other problems that I am not aware of...
Btw, the test case ran without problem without
enzyme-to-json
being installed and configured. I would just like to implement it so that the snapshot can be formatted properly.