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

Jest unit tests warning #199

Open
KoderFPV opened this issue Aug 28, 2020 · 3 comments
Open

Jest unit tests warning #199

KoderFPV opened this issue Aug 28, 2020 · 3 comments
Assignees

Comments

@KoderFPV
Copy link

Hi,
After I started using react-imported-component I have tones of messages in the console when I launch jest.js unit tests.

console.warn react-imported-component: no mark found at [Function] Please check babel plugin or macro setup, as well as imported-component's limitations. See https://github.com/theKashey/react-imported-component/issues/147

Do you know how to solve them? So far I am running jest with --silent flag, but it is not the best approach for our app.

@theKashey
Copy link
Owner

🤦

if (process.env.NODE_ENV !== 'development') {
- it should be straight opposite condition.

But basically your problem is about missing babel plugin or macro.

@theKashey theKashey self-assigned this Aug 28, 2020
@KoderFPV
Copy link
Author

Any solution on how to add babel plugin or macro to jest.js? I don't have this problem in the application, this spam is just running only during unit tests

@theKashey
Copy link
Owner

Usually via .babelrc, or babel-jest configuration if you have it as a separate.

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

2 participants