summaryrefslogtreecommitdiff
path: root/cli/js/tests/unit_test_runner.ts
diff options
context:
space:
mode:
authorAkshat Agarwal <humancalico@disroot.org>2020-03-22 03:14:18 +0530
committerGitHub <noreply@github.com>2020-03-21 17:44:18 -0400
commitb8a5c29bf8e04bb6210080a05ce34e9a8d1d1496 (patch)
tree4e5788c62165789b12c77534923db9dd2d2c57a3 /cli/js/tests/unit_test_runner.ts
parentb191c919f3bde46fe7e0112a33f060715b50b9a4 (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-xcli/js/tests/unit_test_runner.ts8
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