Skip to content

Commit

Permalink
chore: use standard 'Promise.allSettled' instead of polyfill (mochajs…
Browse files Browse the repository at this point in the history
…#4905)

Signed-off-by: Outsider <[email protected]>
  • Loading branch information
outsideris authored Aug 10, 2022
1 parent 84b2f84 commit 77c18d2
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 14 deletions.
3 changes: 1 addition & 2 deletions lib/nodejs/parallel-buffered-runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

'use strict';

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

const results = await allSettled(
const results = await Promise.allSettled(
files.map(this._createFileRunner(pool, options))
);

Expand Down
11 changes: 0 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
"test:smoke": "node ./bin/mocha --no-config test/smoke/smoke.spec.js"
},
"dependencies": {
"@ungap/promise-all-settled": "1.1.2",
"ansi-colors": "4.1.1",
"browser-stdout": "1.3.1",
"chokidar": "3.5.3",
Expand Down

0 comments on commit 77c18d2

Please sign in to comment.