I recently started using webstorm and now I'm using create.react-app and that gives me a default test file to try App.test.js but when I run the testfile with Jest I get the error that document is undefined.
I can't seem to find any info on how to solve this and the same code is running fine with jest in visual studio code.
Does anyone else have this problem using create-react-app and jest?
(files are completly unaltered so if you wish to see how they look simply run the command and see)
EDIT: Should add that running npm test in the console it passes with no errors so it's only using the quick test launch in webstorm when you "run" the file
I've attached a screenshot of it failing and one where it's working with the console