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

Auto-mocking of ES6 component causes annoying warnings. #380

Closed
ncuillery opened this issue May 27, 2015 · 3 comments
Closed

Auto-mocking of ES6 component causes annoying warnings. #380

ncuillery opened this issue May 27, 2015 · 3 comments

Comments

@ncuillery
Copy link
Contributor

Here is the output when running a test with a mocked component:
trace
(to get this code, I just build a list of CheckboxWithLabel on top of the existing react-es6 example, see ncuillery@a387d8c)

It seems the old deprecated functions of React 0.12 are called when mocking the component. I guess it's related to #333

Is there a way to remove these warnings ?

@DmitrySoshnikov
Copy link
Contributor

Yeah, the mocker should consider accessor properties and not to call an accessor function. See the #389.

@ncuillery
Copy link
Contributor Author

Works perfectly in 0.4.7, thank you 👍

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants