Skip to content

Commit

Permalink
test_runner: fix infinite loop when passign --watch=true flag
Browse files Browse the repository at this point in the history
  • Loading branch information
pulkit-30 committed Dec 14, 2023
1 parent bee8b90 commit 67261d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/internal/test_runner/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,10 @@ function filterExecArgv(arg, i, arr) {
}

function getRunArgs(path, { inspectPort, testNamePatterns, only }) {
const argv = ArrayPrototypeFilter(process.execArgv, filterExecArgv).map((arg) => {
const argv = ArrayPrototypeMap(ArrayPrototypeFilter(process.execArgv, filterExecArgv), (arg) => {
const [arg0] = arg.split("=")
return arg0;
})
});
if (isUsingInspector()) {
ArrayPrototypePush(argv, `--inspect-port=${getInspectPort(inspectPort)}`);
}
Expand Down

0 comments on commit 67261d5

Please sign in to comment.