Skip to content

Commit 2bbfada

Browse files
committed
chore - deno 2
1 parent 20928c9 commit 2bbfada

File tree

4 files changed

+12
-10
lines changed

4 files changed

+12
-10
lines changed

tests/smoke/create/create.test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ for (const type of Object.keys(kCreateTypes)) {
4848
const cmd = [quartoDevCmd(), "create", "--json"];
4949
const stdIn = JSON.stringify(createDirective);
5050
const process = await execProcess({
51-
cmd,
51+
cmd: cmd[0],
52+
args: cmd.slice(1),
5253
stdout: "piped",
5354
stderr: "piped",
5455
}, stdIn);
@@ -73,7 +74,8 @@ for (const type of Object.keys(kCreateTypes)) {
7374
// provide a step name and function
7475
const cmd = [quartoDevCmd(), "render", file];
7576
const process = await execProcess({
76-
cmd,
77+
cmd: cmd[0],
78+
args: cmd.slice(1),
7779
cwd: path,
7880
stdout: "piped",
7981
stderr: "piped",

tests/smoke/run/command-passthrough.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import { unitTest } from "../../test.ts";
66
const testPassthroughCmd = (name: string, command: string, args: string[]) => {
77
unitTest(name, async () => {
88
const result = await execProcess({
9-
cmd: [
10-
quartoDevCmd(),
9+
cmd: quartoDevCmd(),
10+
args: [
1111
command,
1212
...args,
1313
]

tests/smoke/run/run-script.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ ensureDirSync(workingDir);
1414
const ensureStreams = (name: string, script: string, stdout: string, stderr: string) => {
1515
unitTest(name, async () => {
1616
const result = await execProcess({
17-
cmd: [
18-
quartoDevCmd(),
17+
cmd: quartoDevCmd(),
18+
args: [
1919
"run",
2020
basename(script),
2121
],
@@ -51,8 +51,8 @@ const ensureStreams = (name: string, script: string, stdout: string, stderr: str
5151
const testRunCmd = (name: string, script: string) => {
5252
unitTest(name, async () => {
5353
const result = await execProcess({
54-
cmd: [
55-
quartoDevCmd(),
54+
cmd: quartoDevCmd(),
55+
args: [
5656
"run",
5757
basename(script),
5858
]

tests/smoke/run/stdlib-run-version.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import { isWindows } from "../../../src/deno_ral/platform.ts";
1212

1313
unitTest("stdlib-run-version", async () => {
1414
const result = await execProcess({
15-
cmd: [
16-
"quarto",
15+
cmd: "quarto",
16+
args: [
1717
"run",
1818
"docs/run/test-stdlib.ts",
1919
],

0 commit comments

Comments
 (0)