Skip to content
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

Merged
merged 2 commits into from Mar 9, 2019
Merged

tests: finish removing mocha #7429

merged 2 commits into from Mar 9, 2019

Conversation

brendankenny
Copy link
Member

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
@@ -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) {
Copy link
Member 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.

@@ -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",
Copy link
Member 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

@@ -138,12 +137,10 @@
"configstore": "^3.1.1",
"cssstyle": "1.2.1",
"details-element-polyfill": "2.2.0",
"esprima": "^4.0.1",
Copy link
Member 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
Member 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
Member 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.

None yet

2 participants