Duplicate it here.
When I specify jest config in a separate file, jest-environment-enzyme can't parse or see it or anything.
But it can see config if I specify it in package.json, but anyway it throws error
We detected setupFilesAfterEnv in your package.json.
Remove it from Jest configuration, and put the initialization code in src/setupTests.js.
This file will be loaded automatically.
Configuration doesn't work in PhpStorm.
My question on StackOverflow https://stackoverflow.com/questions/60521964/how-to-configure-jest-in-phpstorm-for-react-application-create-react-app-flavor
Duplicate it here. When I specify jest config in a separate file, jest-environment-enzyme can't parse or see it or anything. But it can see config if I specify it in package.json, but anyway it throws error
My config in a file jest.config.js: