When installing the NPM dependencies I see 4 vulnerabilities (1 moderate, 2 high, 1 critical). This is just because the Mocha version is outdated.
This PR updates Mocha from version 5 to version 10. The only breaking change is updating the configuration file that defines the ui as export. Since mocha now requires that the config file goes in the project root, or that you pass a custom path as a param, I added it to thepackage.json for simplicity.
Changes:
Upgrade mocha from 5 to 10 and add with the new npm-shrinkwrap.json
Remove the old mocha.opts used to configure Mocha
Update the package.json with a mocha property containing the Mocha configuration
When installing the NPM dependencies I see
4 vulnerabilities (1 moderate, 2 high, 1 critical)
. This is just because the Mocha version is outdated.This PR updates Mocha from version 5 to version 10. The only breaking change is updating the configuration file that defines the
ui
asexport
. Since mocha now requires that the config file goes in the project root, or that you pass a custom path as a param, I added it to thepackage.json
for simplicity.Changes:
npm-shrinkwrap.json
mocha.opts
used to configure Mochapackage.json
with amocha
property containing the Mocha configuration