Skip to content

Commit 145b591

Browse files
committed
test(cli): declare private host loader
1 parent 526d49c commit 145b591

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/zoo-host/src/__tests__/host.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import { VaultSecretStorage, type VaultBackend } from "../security.js"
1212
import { HostTransport } from "../transport.js"
1313

1414
const childPath = fileURLToPath(new URL("../child.ts", import.meta.url))
15+
const tsxLoader = import.meta.resolve("tsx")
1516

1617
describe("host security and transport", () => {
1718
it("requires explicit absolute roots", () => {
@@ -66,7 +67,7 @@ exports.deactivate = async () => {}
6667
stderr: string
6768
}>((resolve, reject) => {
6869
const child = fork(childPath, [], {
69-
execArgv: ["--import", "tsx"],
70+
execArgv: ["--import", tsxLoader],
7071
stdio: ["ignore", "ignore", "pipe", "ipc"],
7172
env: {
7273
...process.env,

0 commit comments

Comments
 (0)