Skip to content

Commit

Permalink
test_runner: avoid spread operation
Browse files Browse the repository at this point in the history
  • Loading branch information
pmarchini committed Oct 1, 2024
1 parent 71ea33d commit e995bec
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/internal/test_runner/harness.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,11 +259,8 @@ function lazyBootstrapRoot() {
entryFile,
loc: entryFile ? [1, 1, entryFile] : undefined,
};
const globalOptions = {
__proto__: null,
...parseCommandLine(),
cwd: process.cwd(),
};
const globalOptions = parseCommandLine();
globalOptions.cwd = process.cwd();
createTestTree(rootTestOptions, globalOptions);
globalRoot.reporter.on('test:summary', (data) => {
if (!data.success) {
Expand Down

0 comments on commit e995bec

Please sign in to comment.