Using Jest in your projects? Learn how WebStorm can help you run and debug Jest tests, do snapshot testing and build coverage reports: https://blog.jetbrains.com/webstorm/2018/10/testing-with-jest-in-webstorm/ …pic.twitter.com/eQGgpCcdk2
-
-
Replying to @WebStormIDE
That works great if you have one jest.config file in your project. If you have many files in the same project (different modules) you will always have to reconfigure intellij to look for the right jest.config file :(
1 reply 0 retweets 1 like -
Replying to @Vlio20
Sorry for the delayed reply! Can you please tell a bit more about the config file's location in the project structure? In general, the IDE will look for config in the module/project root and use it in the automatically created configuration.
1 reply 0 retweets 0 likes -
Replying to @WebStormIDE
We have in our root dir a jest.config file (the node server) and we also have a jest.config file in a sub directory (the web app). When running the tests located in the server all goes well (as they are pointing to the correct config file), but when running the tests in the ui
1 reply 0 retweets 0 likes -
Replying to @Vlio20 @WebStormIDE
there is an error and we have to manually configure the jest test runner to work with the config file which is placed in the web dir. A solution could be for the IDE by default to look for the closest jest.config file. Hope it's more clear now...
1 reply 0 retweets 0 likes
Thanks, got it! Yeah, it seems that setting a working directory to the folder with the jest.config.js file instead of package.json will help. Here's an issue you can follow: https://youtrack.jetbrains.com/issue/WEB-35553 Thanks for the feedback!
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.