-
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: finish removing mocha #7429
Conversation
@@ -1046,7 +1046,7 @@ describe('Config', () => { | |||
|
|||
it('loads a gatherer from node_modules/', () => { | |||
// Use a lighthouse dep as a stand in for a module. | |||
assert.throws(_ => loadGatherer('mocha'), function(err) { | |||
assert.throws(_ => loadGatherer('lighthouse-logger'), function(err) { |
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.
these are testing that Config.resolveModule
will look in node_modules/
for audits or gatherers, so it just needs to be something in there.
@@ -50,7 +50,6 @@ | |||
"fast": "yarn start --disable-device-emulation --throttlingMethod=provided", | |||
"deploy-viewer": "yarn build-viewer --deploy", | |||
"bundlesize": "bundlesize", | |||
"plots-smoke": "bash plots/test/smoke.sh", |
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.
blast from the past
@@ -138,12 +137,10 @@ | |||
"configstore": "^3.1.1", | |||
"cssstyle": "1.2.1", | |||
"details-element-polyfill": "2.2.0", | |||
"esprima": "^4.0.1", |
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.
still used by collect-strings.js
, but no longer in unminified-javascript
, so just a devDependency
no dice |
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.
LGTM!
"fix CI errors" -> lies |
another possible approach to fixing #7418/#7413, assuming something wonky is going on trying to do coverage over jest and mocha at once.
If it doesn't work...we've been meaning to finish getting rid of mocha anyways :)