Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Commit

Permalink
fix(deps): update dependency mocha to v8 (#521)
Browse files Browse the repository at this point in the history
* fix(deps): update dependency mocha to v8

* fix: use 8.1.1

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Egill Sveinbjörnsson <egill.sveinbjornsson@qlik.com>
  • Loading branch information
3 people authored Sep 3, 2020
1 parent 11a29bc commit 5cea199
Show file tree
Hide file tree
Showing 8 changed files with 162 additions and 119 deletions.
4 changes: 2 additions & 2 deletions commands/cdp/src/connect.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ module.exports = async function connect(argv, files, presetEnv, debugging) {
const client = await CDP(argv.client);
const { DOM, DOMStorage, Console, Network, Page, Runtime } = client;

const { bail, useColors, reporter, ui, timeout } = argv.mocha;
const { bail, color, reporter, ui, timeout } = argv.mocha;
const injectMochaOptions = `window.mochaOptions = ${JSON.stringify({
bail,
useColors,
color,
reporter,
ui,
timeout,
Expand Down
2 changes: 1 addition & 1 deletion commands/cdp/src/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ module.exports = {
default: 2000,
type: 'number',
},
'mocha.useColors': {
'mocha.color': {
description: 'Use colors in output',
default: true,
type: 'boolean',
Expand Down
2 changes: 1 addition & 1 deletion commands/node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"chokidar": "3.4.2",
"globby": "11.0.1",
"import-cwd": "3.0.0",
"mocha": "7.2.0",
"mocha": "8.1.1",
"nyc": "15.1.0"
},
"files": [
Expand Down
2 changes: 1 addition & 1 deletion commands/protractor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"import-cwd": "3.0.0",
"jimp": "0.16.1",
"mkdirp": "1.0.4",
"mocha": "7.2.0",
"mocha": "8.1.1",
"moment": "2.27.0",
"yargs": "15.4.1"
},
Expand Down
3 changes: 1 addition & 2 deletions docs/cdp-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ title: Chrome

---

### --mocha.useColors
### --mocha.color

| Description | Type | Default |
| :------------------- | :------ | :------ |
Expand Down Expand Up @@ -340,4 +340,3 @@ title: Chrome
| Filter files for Chrome runner | array | ** |

---

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"@babel/plugin-transform-react-jsx": "7.10.4",
"@babel/preset-env": "7.11.5",
"@types/chai": "4.2.12",
"@types/mocha": "7.0.2",
"@types/mocha": "8.0.3",
"babel-plugin-istanbul": "6.0.0",
"coveralls": "3.1.0",
"eslint": "7.8.1",
Expand Down
3 changes: 1 addition & 2 deletions website/versioned_docs/version-6.0.0/cdp-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ original_id: chrome-options

---

### --mocha.useColors
### --mocha.color

| Description | Type | Default |
| :------------------- | :------ | :------ |
Expand Down Expand Up @@ -341,4 +341,3 @@ original_id: chrome-options
| Filter files for Chrome runner | array | ** |

---

Loading

0 comments on commit 5cea199

Please sign in to comment.