Skip to content

Commit 80c5ca8

Browse files
committed
🔧 Use portable host references in the workspace repository test
1 parent 23010fe commit 80c5ca8

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎packages/cli/tests/retained-repository-selection.test.ts‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
import { describe, it } from "@executablemd/test-support/bdd";
2323
import { expect } from "@executablemd/test-support/expect";
24+
import { cliCommand } from "@executablemd/test-support/launch";
2425
import {
2526
ensure,
2627
race,
@@ -1198,7 +1199,7 @@ describe("1051 — repositories in the existing Sidekick workspace", () => {
11981199
yield* ensureDir(saved);
11991200
yield* writeTextFile(join(saved, "acquire.xmd"), acquire);
12001201
yield* writeTextFile(join(saved, "read.xmd"), read);
1201-
const artifactRoot = Deno.env.get("XMD_1051_ARTIFACTS");
1202+
const artifactRoot = yield* API.Env.operations.env("XMD_1051_ARTIFACTS");
12021203
if (artifactRoot !== undefined) {
12031204
yield* ensureDir(artifactRoot);
12041205
yield* writeTextFile(join(artifactRoot, "acquire.xmd"), acquire);
@@ -1297,7 +1298,7 @@ describe("1051 — repositories in the existing Sidekick workspace", () => {
12971298
projectCwd: fixture.root,
12981299
hostFiles: true,
12991300
entryInstallation: denoReplEntry(
1300-
{ runtime: "source", platform: "unix", execPath: Deno.execPath() },
1301+
{ runtime: "source", platform: "unix", execPath: cliCommand([]).command },
13011302
fixture.managed,
13021303
),
13031304
});
@@ -1469,7 +1470,7 @@ describe("1051 — repositories in the existing Sidekick workspace", () => {
14691470
projectCwd: fixture.root,
14701471
hostFiles: true,
14711472
entryInstallation: denoReplEntry(
1472-
{ runtime: "source", platform: "unix", execPath: Deno.execPath() },
1473+
{ runtime: "source", platform: "unix", execPath: cliCommand([]).command },
14731474
fixture.managed,
14741475
),
14751476
});

0 commit comments

Comments
 (0)