-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
tests: use nyc for coverage, dropping deprecated istanbul #4919
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lovely
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🏙
yah! np. :) Okay it looks like coverage went down half a percent. Why? https://codecov.io/gh/GoogleChrome/lighthouse/pull/4919/changes The updated instrumentation handles the first line of a function differently. Should report LESS now. (before on left, after on right) Lots of |
to confirm, this is ready for a new review. I've looked over the coverage data and am happy with where things stand. |
"core-unit": "yarn unit-core", | ||
"cli-unit": "yarn unit-cli", | ||
"viewer-unit": "yarn unit-viewer", | ||
"watch": "yarn unit-core --watch", | ||
|
||
"unit:silentcoverage": "nyc --silent yarn unit", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why silent coverage? just got annoyed with it in output?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -1,27 +0,0 @@ | |||
#!/usr/bin/env bash |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
"unit-viewer": "bash lighthouse-core/scripts/run-mocha.sh --viewer", | ||
"unit": "bash lighthouse-core/scripts/run-mocha.sh --default", | ||
|
||
"unit-core": "mocha --reporter dot \"lighthouse-core/test/**/*-test.js\"", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: can we just use single quotes instead? escaping hurts my 👀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks fantastic
This reverts commit fa30b00.
Istanbul has been choking on async/await since that landed in master.
This fixes that.