|
21 | 21 |
|
22 | 22 | import { describe, it } from "@executablemd/test-support/bdd"; |
23 | 23 | import { expect } from "@executablemd/test-support/expect"; |
| 24 | +import { cliCommand } from "@executablemd/test-support/launch"; |
24 | 25 | import { |
25 | 26 | ensure, |
26 | 27 | race, |
@@ -1198,7 +1199,7 @@ describe("1051 — repositories in the existing Sidekick workspace", () => { |
1198 | 1199 | yield* ensureDir(saved); |
1199 | 1200 | yield* writeTextFile(join(saved, "acquire.xmd"), acquire); |
1200 | 1201 | 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"); |
1202 | 1203 | if (artifactRoot !== undefined) { |
1203 | 1204 | yield* ensureDir(artifactRoot); |
1204 | 1205 | yield* writeTextFile(join(artifactRoot, "acquire.xmd"), acquire); |
@@ -1297,7 +1298,7 @@ describe("1051 — repositories in the existing Sidekick workspace", () => { |
1297 | 1298 | projectCwd: fixture.root, |
1298 | 1299 | hostFiles: true, |
1299 | 1300 | entryInstallation: denoReplEntry( |
1300 | | - { runtime: "source", platform: "unix", execPath: Deno.execPath() }, |
| 1301 | + { runtime: "source", platform: "unix", execPath: cliCommand([]).command }, |
1301 | 1302 | fixture.managed, |
1302 | 1303 | ), |
1303 | 1304 | }); |
@@ -1469,7 +1470,7 @@ describe("1051 — repositories in the existing Sidekick workspace", () => { |
1469 | 1470 | projectCwd: fixture.root, |
1470 | 1471 | hostFiles: true, |
1471 | 1472 | entryInstallation: denoReplEntry( |
1472 | | - { runtime: "source", platform: "unix", execPath: Deno.execPath() }, |
| 1473 | + { runtime: "source", platform: "unix", execPath: cliCommand([]).command }, |
1473 | 1474 | fixture.managed, |
1474 | 1475 | ), |
1475 | 1476 | }); |
|
0 commit comments