Skip to content

Commit 77c18d2

Browse files
authored
chore: use standard 'Promise.allSettled' instead of polyfill (#4905)
Signed-off-by: Outsider <[email protected]>
1 parent 84b2f84 commit 77c18d2

File tree

3 files changed

+1
-14
lines changed

3 files changed

+1
-14
lines changed

lib/nodejs/parallel-buffered-runner.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
'use strict';
88

9-
const allSettled = require('@ungap/promise-all-settled').bind(Promise);
109
const Runner = require('../runner');
1110
const {EVENT_RUN_BEGIN, EVENT_RUN_END} = Runner.constants;
1211
const debug = require('debug')('mocha:parallel:parallel-buffered-runner');
@@ -322,7 +321,7 @@ class ParallelBufferedRunner extends Runner {
322321
delete options[opt];
323322
});
324323

325-
const results = await allSettled(
324+
const results = await Promise.allSettled(
326325
files.map(this._createFileRunner(pool, options))
327326
);
328327

package-lock.json

-11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@
5454
"test:smoke": "node ./bin/mocha --no-config test/smoke/smoke.spec.js"
5555
},
5656
"dependencies": {
57-
"@ungap/promise-all-settled": "1.1.2",
5857
"ansi-colors": "4.1.1",
5958
"browser-stdout": "1.3.1",
6059
"chokidar": "3.5.3",

0 commit comments

Comments
 (0)