Skip to content

Conversation

@brendankenny
Copy link
Contributor

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 :)

@brendankenny brendankenny changed the title tests: finish removing mocha tests: finish removing mocha; fix CI errors Mar 9, 2019
@brendankenny brendankenny changed the title tests: finish removing mocha; fix CI errors tests: finish removing mocha, fix CI errors Mar 9, 2019
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) {
Copy link
Contributor Author

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.

"fast": "yarn start --disable-device-emulation --throttlingMethod=provided",
"deploy-viewer": "yarn build-viewer --deploy",
"bundlesize": "bundlesize",
"plots-smoke": "bash plots/test/smoke.sh",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

blast from the past

"configstore": "^3.1.1",
"cssstyle": "1.2.1",
"details-element-polyfill": "2.2.0",
"esprima": "^4.0.1",
Copy link
Contributor Author

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

@brendankenny
Copy link
Contributor Author

TypeError: Cannot read property 'decl' of undefined

no dice

Copy link
Collaborator

@patrickhulce patrickhulce left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@brendankenny brendankenny merged commit e27ab6a into master Mar 9, 2019
@brendankenny brendankenny deleted the nomocha branch March 9, 2019 04:34
@brendankenny brendankenny changed the title tests: finish removing mocha, fix CI errors tests: finish removing mocha Mar 9, 2019
@brendankenny
Copy link
Contributor Author

"fix CI errors" -> lies

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants