-
Notifications
You must be signed in to change notification settings - Fork 6
Unable to mock document.createRange with setupTests.js #54
Comments
Hm, what does your There was a discussion about this problem in the Popper repo and someone had a solution that supposedly works. |
I did take that snippet excluding enzyme adapter since I do not use enzyme at all |
https://github.com/NodusMedical/nodus-frontend/pull/65/files Nevermind jest config in package.json part. It doesn't make any effect |
I've tried to make test of setupTests.js and added next code there
and then tried to access it in one of my tests like
And it said that RAWR is undefined |
There's a typo there.
But the actual file is |
The issue was with invalid Circle CI configuration. Sorry for false issue |
My tests are failing in CI because of following error.
I've tried to mock this function globally by adding
src/setupTests.js
like documentation of CRA suggests:https://github.com/facebook/create-react-app/blob/master/packages/react-scripts/template/README.md#initializing-test-environment
But that wasn't efficient - they're still failing
The text was updated successfully, but these errors were encountered: