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

Upgrade to Mocaccino 5, use Mocha 8 and Puppeteer 9 #223

Merged
merged 3 commits into from May 25, 2021
Merged

Conversation

m90
Copy link
Collaborator

@m90 m90 commented May 24, 2021

Closes #213

Most of the changes in this PR are related to change in TAP output in Mocha 8 discussed here: mantoni/mocaccino.js#35 (comment)


The other issue we run into here is that the rollupified Mocha 8 browser bundle now prints a whole lot of deprecation warnings like:

'window.webkitStorageInfo' is deprecated. Please use 'navigator.webkitTemporaryStorage' or 'navigator.webkitPersistentStorage' instead

When I inspect a bundle in my browser the warning points here: https://github.com/mochajs/mocha/blob/34643e4c0821aeb8d6977c1942bc106c9363789a/browser-entry.js#L219 (or rather there plus some Rollup code around it).

For now I'm not entirely sure we could fix this in any other way than just swallowing these warnings?

@@ -86,6 +85,7 @@
"devDependencies": {
"@studio/changes": "^2.0.1",
"eslint": "^7.13.0",
"mocha": "^8.4.0",
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It occured to me Mocha might just be a dev dependency here (as the tests should consume the Mocha used by mocaccino). Correct me if I'm wrong.

@m90
Copy link
Collaborator Author

m90 commented May 24, 2021

We could also include Browserify 17 in here while we're updating things. Changeset seems unproblematic https://github.com/browserify/browserify/releases/tag/v17.0.0


EDIT: seems some tests are failing when using Browserify 17, so we might need to look into that upgrade on its own if we want it.

@mantoni mantoni merged commit 9655108 into master May 25, 2021
@mantoni mantoni deleted the mocha-8 branch May 25, 2021 21:05
@mantoni
Copy link
Owner

mantoni commented May 25, 2021

Awesome! Thank you 💯 for getting this accross the finish line. 🙏 🥇

I've already tested this in a large project and it works like a dream.

📦 Released in v8.0.0.

@m90 m90 mentioned this pull request May 26, 2021
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.

Update to a more recent version of mocha
2 participants