-
-
Notifications
You must be signed in to change notification settings - Fork 87
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
Log-Messages from ComponentMock() on console when testing with Karma #13
Comments
Hi @frot-io , First off, thanks for using ng-mocks. Unfortunately this appears to be an issue with phantomJS: ariya/phantomjs#13895. I've tried to reproduce the issue with the ng-mocks tests by using the karma-phantom-launcher and including es6 polyfills, but I ended up getting stuck with some issue with zone.js's usage of Object.isFrozen. I'd recommend using chrome headless if you can, especially since your user base is not using phantomJS for a browser :-). If that isn't an option if you can figure out how to reproduce the issue in a repo that I can get access to I'd be happy to take a look. |
Thank you @ike18t for answering and also for maintaining this project! I will file a bug report in our system and see, when someon has spare time to test it with headless chrome :) |
I also get these logs when I try running tests using a MockComponent (Karma + PhantomJS) |
@jaadus Yeah, it is kind of a bummer. You can see the explanation in my response to @frot-io . You are more than welcome to try to reproduce the issue with the ng-mocks tests. Then either I can take a look or if you are up to creating a PR to resolve the issue that would be awesome as well. |
I'm going to close this issue since it is more of an issue with using PhantomJS which doesn't support ES6. |
When I run
ng test --watch
, I get strange Log-Messages in the console:These strange logs appear on every component in our project. The spec file is just:
Is there a chance to get rid of them? The tests obviously run nevertheless.
The text was updated successfully, but these errors were encountered: