-
-
Notifications
You must be signed in to change notification settings - Fork 97
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
React is not defined #77
Comments
Probably related to #13, but with my example it'll work fine until monorepo is supported. If you have a monorepo, the command should be started with the help of your package manager. Here is an example with
Put this line in Also the package's
|
@Pustinyak Thanks for the solution, I changed it a little bit for yarn, and works fine in one monorepo
but I also have a If you have any idea about this, please. |
You can try using the vscode workspace to open folders that require different configs. Each folder can have its own .vscode settings. |
Describe the bug
In a very simple test for a component I keep getting
React is not defined
To Reproduce
Run test in the UI for a component
Expected behavior
Run test successfully. The plugin works ok with non react tests. The react tests run without any issue in the console.
Screenshots
![Screen Shot 2022-08-22 at 7 14 46 PM](https://user-images.githubusercontent.com/7572389/186036243-b2f9b9e0-219d-41b5-ab2e-d14cb115988a.png)
Environment
The text was updated successfully, but these errors were encountered: