However, I get the following error:
TypeError: Object is not a constructor (evaluating '_sinon2['default'].spy()')
My set up is exactly the same as this repo. I've also tried using spies from jasmine and other libraries but none of them are working. Has anyone been able to get spies to work in this enzyme/karma setup? Is there's something I'm missing in my config file?
I've tried this code from the main enzyme page:
However, I get the following error:
TypeError: Object is not a constructor (evaluating '_sinon2['default'].spy()')
My set up is exactly the same as this repo. I've also tried using spies from jasmine and other libraries but none of them are working. Has anyone been able to get spies to work in this enzyme/karma setup? Is there's something I'm missing in my config file?