Skip to content

Commit f6c1237

Browse files
dependency: bump mocha from 7.1.0 to 7.1.1 (#31401)
* dependency: bump mocha from 7.1.0 to 7.1.1 * changelog entry * Update lower number of duration check
1 parent 14e17ae commit f6c1237

File tree

5 files changed

+59
-8
lines changed

5 files changed

+59
-8
lines changed

cli/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ _Released 4/8/2025 (PENDING)_
1515

1616
**Dependency Updates:**
1717

18-
- Upgraded `mocha` from `7.0.1` to `7.1.0`. Addressed in [#31387](https://github.com/cypress-io/cypress/pull/31387).
18+
- Upgraded `mocha` from `7.0.1` to `7.1.1`. Addressed in [#31401](https://github.com/cypress-io/cypress/pull/31401).
1919
- Upgraded `webdriver` from `9.7.3` to `9.11.0`. Addressed in [#31315](https://github.com/cypress-io/cypress/pull/31315).
2020
- Upgraded `win-version-info` from `5.0.1` to `6.0.1`. Addressed in [#31358](https://github.com/cypress-io/cypress/pull/31358).
2121

packages/driver/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
"methods": "1.1.2",
7878
"mime": "^3.0.0",
7979
"minimatch": "3.1.2",
80-
"mocha": "7.1.0",
80+
"mocha": "7.1.1",
8181
"multer": "1.4.4",
8282
"ordinal": "1.0.3",
8383
"react-15.6.1": "npm:[email protected]",

packages/driver/patches/mocha+7.1.0.dev.patch renamed to packages/driver/patches/mocha+7.1.1.dev.patch

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,23 @@
11
diff --git a/node_modules/mocha/CHANGELOG.md b/node_modules/mocha/CHANGELOG.md
22
deleted file mode 100644
3-
index 4cf0b4e..0000000
3+
index 8c2f86a..0000000
44
--- a/node_modules/mocha/CHANGELOG.md
55
+++ /dev/null
6-
@@ -1,609 +0,0 @@
6+
@@ -1,623 +0,0 @@
7+
-# 7.1.1 / 2020-03-18
8+
-
9+
-## :lock: Security Fixes
10+
-
11+
-- [#4204](https://github.com/mochajs/mocha/issues/4204): Update dependencies mkdirp, yargs-parser and yargs ([**@juergba**](https://github.com/juergba))
12+
-
13+
-## :bug: Fixes
14+
-
15+
-- [#3660](https://github.com/mochajs/mocha/issues/3660): Fix `runner` listening to `start` and `end` events ([**@juergba**](https://github.com/juergba))
16+
-
17+
-## :book: Documentation
18+
-
19+
-- [#4190](https://github.com/mochajs/mocha/issues/4190): Show Netlify badge on footer ([**@outsideris**](https://github.com/outsideris))
20+
-
721
-# 7.1.0 / 2020-02-26
822
-
923
-## :tada: Enhancements
@@ -746,7 +760,7 @@ index 740e1fd..0cd2769 100644
746760
runner.fullStackTrace = options.fullTrace;
747761
runner.asyncOnly = options.asyncOnly;
748762
diff --git a/node_modules/mocha/lib/runner.js b/node_modules/mocha/lib/runner.js
749-
index 17fa290..52f437e 100644
763+
index 8e7c873..5208e60 100644
750764
--- a/node_modules/mocha/lib/runner.js
751765
+++ b/node_modules/mocha/lib/runner.js
752766
@@ -682,9 +682,43 @@ Runner.prototype.runTests = function(suite, fn) {

system-tests/lib/resultsUtils.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import _ from 'lodash'
44

55
const STATIC_DATE = '2018-02-01T20:14:19.323Z'
66

7-
const expectDurationWithin = function (obj, duration, low, high, reset) {
8-
const d = _.get(obj, duration)
7+
const expectDurationWithin = function (obj: object, duration: string, low: number, high: number, reset: number) {
8+
const d: number | undefined = _.get(obj, duration)
99

1010
// bail if we don't have a duration
1111
if (!_.isNumber(d)) {
@@ -255,7 +255,7 @@ export const expectCorrectModuleApiResult = (json, opts: {
255255
expectDurationWithin(
256256
run,
257257
'reporterStats.duration',
258-
wallClocks,
258+
wallClocks - 100,
259259
wallClocks + 1000, // add 600ms to account for padding
260260
1234,
261261
)

yarn.lock

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22793,6 +22793,13 @@ [email protected]:
2279322793
dependencies:
2279422794
minimist "0.0.8"
2279522795

22796+
22797+
version "0.5.3"
22798+
resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.3.tgz#5a514b7179259287952881e94410ec5465659f8c"
22799+
integrity sha512-P+2gwrFqx8lhew375MQHHeTlY8AuOJSrGf0R5ddkEndUkmwpgUob/vQuBD1V22/Cw1/lJr4x+EjllSezBThzBg==
22800+
dependencies:
22801+
minimist "^1.2.5"
22802+
2279622803
2279722804
version "0.5.5"
2279822805
resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.5.tgz#d91cefd62d1436ca0f41620e251288d420099def"
@@ -23023,6 +23030,36 @@ [email protected]:
2302323030
yargs-parser "13.1.1"
2302423031
yargs-unparser "1.6.0"
2302523032

23033+
23034+
version "7.1.1"
23035+
resolved "https://registry.yarnpkg.com/mocha/-/mocha-7.1.1.tgz#89fbb30d09429845b1bb893a830bf5771049a441"
23036+
integrity sha512-3qQsu3ijNS3GkWcccT5Zw0hf/rWvu1fTN9sPvEd81hlwsr30GX2GcDSSoBxo24IR8FelmrAydGC6/1J5QQP4WA==
23037+
dependencies:
23038+
ansi-colors "3.2.3"
23039+
browser-stdout "1.3.1"
23040+
chokidar "3.3.0"
23041+
debug "3.2.6"
23042+
diff "3.5.0"
23043+
escape-string-regexp "1.0.5"
23044+
find-up "3.0.0"
23045+
glob "7.1.3"
23046+
growl "1.10.5"
23047+
he "1.2.0"
23048+
js-yaml "3.13.1"
23049+
log-symbols "3.0.0"
23050+
minimatch "3.0.4"
23051+
mkdirp "0.5.3"
23052+
ms "2.1.1"
23053+
node-environment-flags "1.0.6"
23054+
object.assign "4.1.0"
23055+
strip-json-comments "2.0.1"
23056+
supports-color "6.0.0"
23057+
which "1.3.1"
23058+
wide-align "1.1.3"
23059+
yargs "13.3.2"
23060+
yargs-parser "13.1.2"
23061+
yargs-unparser "1.6.0"
23062+
2302623063
2302723064
version "7.1.2"
2302823065
resolved "https://registry.yarnpkg.com/mocha/-/mocha-7.1.2.tgz#8e40d198acf91a52ace122cd7599c9ab857b29e6"

0 commit comments

Comments
 (0)