jaredpalmer / razzle

✨ Create server-rendered universal JavaScript applications with no configuration

Home Page:https://razzlejs.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Run tests in IDE with @testing-library/react

akiirii opened this issue · comments

❓Question

How to set up razzle to be able to run tests with @testing-library/react from IDE (Webstorm) level? Apparently, it has a problem finding/read jest.config -> it throws an error that it does not have @testing-library/react specific function for example TypeError: expect(...).toBeInTheDocument is not a function

But running this test from console works fine.

In beginning, I had problem with running all tests but add .babelrc with { "presets": [ "razzle/babel" ] }

Is there a quick fix for it? I try to search in your doc but I do not find anything useful for this issue