Skip to content

Commit 60e3662

Browse files
committed
replace promise.allsettled with @ungap/promise-all-settled; closes #4474
1 parent f132448 commit 60e3662

File tree

3 files changed

+53
-86
lines changed

3 files changed

+53
-86
lines changed

lib/nodejs/parallel-buffered-runner.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
'use strict';
88

9-
const allSettled = require('promise.allsettled');
9+
const allSettled = require('@ungap/promise-all-settled').bind(Promise);
1010
const Runner = require('../runner');
1111
const {EVENT_RUN_BEGIN, EVENT_RUN_END} = Runner.constants;
1212
const debug = require('debug')('mocha:parallel:parallel-buffered-runner');

package-lock.json

Lines changed: 51 additions & 84 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
"test:smoke": "node ./bin/mocha --no-config test/smoke/smoke.spec.js"
5353
},
5454
"dependencies": {
55+
"@ungap/promise-all-settled": "^1.1.2",
5556
"ansi-colors": "4.1.1",
5657
"browser-stdout": "1.3.1",
5758
"chokidar": "3.4.2",
@@ -67,7 +68,6 @@
6768
"minimatch": "3.0.4",
6869
"ms": "2.1.2",
6970
"nanoid": "3.1.12",
70-
"promise.allsettled": "1.0.2",
7171
"serialize-javascript": "5.0.1",
7272
"strip-json-comments": "3.1.1",
7373
"supports-color": "7.2.0",

0 commit comments

Comments
 (0)