diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index c619dca26a..ced4935a1f 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -42,7 +42,7 @@ Follow these steps to get going. If you are having trouble, don't be afraid to [ > PRO TIP: After `npm install`, run `npm start` to see a list of commands which can be run with `npm start ` (powered by [nps](https://npm.im/nps)). -1. [Install Node.js 12.22.3 or newer](https://nodejs.org/en/download/). +1. [Install Node.js 14 LTS or newer with npm@7+](https://nodejs.org/en/download/). - If you're new to installing Node, a tool like [nvm](https://github.com/creationix/nvm#install-script) can help you manage multiple version installations. - You will need [Google Chrome](https://www.google.com/chrome/) to run browser-based tests locally. 1. Follow [Github's documentation](https://help.github.com/articles/fork-a-repo/) on setting up Git, forking and cloning. diff --git a/MAINTAINERS.md b/MAINTAINERS.md index 37fc0b2216..a029bc536f 100644 --- a/MAINTAINERS.md +++ b/MAINTAINERS.md @@ -341,7 +341,7 @@ _It's easier to release often._ 1. Modify `CHANGELOG.md`; follow the existing conventions in that file. Use the "pull request" number, unless there isn't one. _You do not need to add Markdown links; this is done automatically._ 1. You can omit stuff from `CHANGELOG.md` that was done by a maintainer, but would have no interest to consumers of Mocha. 1. If the changes aren't of interest to consumers but _were not_ made by a maintainer, reference them anyway. It's cool to give attribution! -1. Use `npm version` (use `npm@6+`) to bump the version; see `npm version --help` for more info. (Hint--use `-m`: e.g., `npm version patch -m 'Release v%s'`) +1. Use `npm version` (use `npm@8+`) to bump the version; see `npm version --help` for more info. (Hint--use `-m`: e.g., `npm version patch -m 'Release v%s'`) 1. This command will update the list of authors (from the Git history) in `AUTHORS`, and add GitHub links to `CHANGELOG.md`. 1. These changes are then added to the Git "stage" and will be added to the commit. 1. Push `master` to `origin` with your new tag; e.g. `git push origin master --tags` diff --git a/lib/runner.js b/lib/runner.js index 7f9184fc1a..87f93c20b3 100644 --- a/lib/runner.js +++ b/lib/runner.js @@ -139,7 +139,7 @@ class Runner extends EventEmitter { * @param {boolean} [opts.cleanReferencesAfterRun] - Whether to clean references to test fns and hooks when a suite is done. * @param {boolean} [opts.delay] - Whether to delay execution of root suite until ready. * @param {boolean} [opts.dryRun] - Whether to report tests without running them. - * @param {boolean} [options.failZero] - Whether to fail test run if zero tests encountered. + * @param {boolean} [opts.failZero] - Whether to fail test run if zero tests encountered. */ constructor(suite, opts) { super(); diff --git a/package.json b/package.json index 8c66a69574..74a875062d 100644 --- a/package.json +++ b/package.json @@ -78,11 +78,11 @@ "yargs-unparser": "2.0.0" }, "devDependencies": { - "@11ty/eleventy": "^0.11.0", - "@11ty/eleventy-plugin-inclusive-language": "^1.0.0", + "@11ty/eleventy": "^0.12.1", + "@11ty/eleventy-plugin-inclusive-language": "^1.0.3", "@babel/eslint-parser": "^7.15.4", "@babel/preset-env": "^7.14.8", - "@mocha/docdash": "^3.0.1", + "@mocha/docdash": "^4.0.0", "@rollup/plugin-babel": "^5.1.0", "@rollup/plugin-commonjs": "^14.0.0", "@rollup/plugin-json": "^4.1.0", @@ -110,8 +110,8 @@ "fs-extra": "^9.0.1", "husky": "^4.2.5", "hyperlink": "^4.7.0", - "jsdoc": "^3.6.5", - "jsdoc-ts-utils": "^1.1.2", + "jsdoc": "^3.6.7", + "jsdoc-ts-utils": "^2.0.1", "karma": "^6.3.4", "karma-chrome-launcher": "^3.1.0", "karma-mocha": "^2.0.1", @@ -132,9 +132,9 @@ "pidtree": "^0.5.0", "prettier": "^1.19.1", "regenerator-runtime": "0.13.7", - "remark": "^12.0.1", - "remark-github": "^9.0.1", - "remark-inline-links": "^4.0.0", + "remark": "^14.0.1", + "remark-github": "^11.1.1", + "remark-inline-links": "^6.0.0", "requirejs": "^2.3.6", "rewiremock": "^3.14.3", "rimraf": "^3.0.2", @@ -157,8 +157,8 @@ "uslug": "^1.0.4", "uuid": "^8.3.0", "watchify": "^4.0.0", - "webpack": "^4.44.1", - "webpack-cli": "^3.3.12" + "webpack": "^5.59.1", + "webpack-cli": "^4.9.1" }, "files": [ "bin/*mocha", diff --git a/test/browser-specific/fixtures/webpack/webpack.config.js b/test/browser-specific/fixtures/webpack/webpack.config.js index 53d4769c8e..97c2ddc1d9 100644 --- a/test/browser-specific/fixtures/webpack/webpack.config.js +++ b/test/browser-specific/fixtures/webpack/webpack.config.js @@ -10,6 +10,7 @@ console.error('output dir: %s', outputPath); module.exports = { entry: require.resolve('./webpack.fixture.mjs'), + target: 'browserslist:last 2 Chrome versions or IE 11', output: { path: outputPath },