diff options
author | Akshat Agarwal <humancalico@disroot.org> | 2020-03-22 03:14:18 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-21 17:44:18 -0400 |
commit | b8a5c29bf8e04bb6210080a05ce34e9a8d1d1496 (patch) | |
tree | 4e5788c62165789b12c77534923db9dd2d2c57a3 /cli/js/tests/unit_test_runner.ts | |
parent | b191c919f3bde46fe7e0112a33f060715b50b9a4 (diff) |
BREAKING CHANGE Rename Deno.run's args to cmd (#4444)
This is to avoid confusion with Deno.args which does not include the
executable to be run.
Diffstat (limited to 'cli/js/tests/unit_test_runner.ts')
-rwxr-xr-x | cli/js/tests/unit_test_runner.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cli/js/tests/unit_test_runner.ts b/cli/js/tests/unit_test_runner.ts index 62c3250a7..e79e1b7ea 100755 --- a/cli/js/tests/unit_test_runner.ts +++ b/cli/js/tests/unit_test_runner.ts @@ -86,7 +86,7 @@ function spawnWorkerRunner( }) .join(","); - const args = [ + const cmd = [ Deno.execPath(), "run", "-A", @@ -97,14 +97,14 @@ function spawnWorkerRunner( ]; if (filter) { - args.push("--"); - args.push(filter); + cmd.push("--"); + cmd.push(filter); } const ioMode = verbose ? "inherit" : "null"; const p = Deno.run({ - args, + cmd, stdin: ioMode, stdout: ioMode, stderr: ioMode |