Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run tests in IDE with @testing-library/react #1873

Open
akiirii opened this issue Jun 9, 2022 · 0 comments
Open

Run tests in IDE with @testing-library/react #1873

akiirii opened this issue Jun 9, 2022 · 0 comments

Comments

@akiirii
Copy link

akiirii commented Jun 9, 2022

❓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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant