-
Notifications
You must be signed in to change notification settings - Fork 46
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
Code coverage breaks 'no jshint' for tests #16
Comments
Some investigation into using the client flags would be useful. Ideally I'd only like to instrument and run the coverage when the "enable coverage" checkbox is flagged, so the nojshint would fall into a similar investigation. |
(edited, previous version of this comment was wrong): A quick and dirty way to solve this is to change the end of blanket-loader.js from:
to
but there's probably a better way to get that flag. It means that 'enable coverage' also forces jshint on, but (for me at least) that seems reasonable. |
@djmitchella Good to know - definitely a useful starting point for making better use of the flags. |
This is fixed in 0.5.0. |
Another one related to the way things are loaded differently, I think. Repro steps:
(I'm not sure, but from looking at test-loader.js in ember-cli-test-loader, it seems that jshint is somehow automatically getting run on everything that's loaded. I'm guessing that the nojshint setting stops test-loader loading the files, but blanket is still loading them anyway for coverage purposes; I'm not sure if it's possible to fix this without changing how the nojshint code works)
The text was updated successfully, but these errors were encountered: