Skip to content

Commit 8223059

Browse files
committed
tests: anchor env schema path to test file
1 parent adf3c3a commit 8223059

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

bin/broker-register.test.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import fs from "node:fs";
44
import os from "node:os";
55
import path from "node:path";
66
import { createServer } from "node:http";
7-
import { pathToFileURL } from "node:url";
7+
import { fileURLToPath, pathToFileURL } from "node:url";
88
import {
99
parseArgs,
1010
normalizeBrokerUrl,
@@ -267,7 +267,7 @@ test("runRegistration integration path succeeds against live local HTTP server",
267267
});
268268

269269
test("env schema accepts org IDs for deprecated workspace aliases", () => {
270-
const schemaPath = path.resolve(".env.schema");
270+
const schemaPath = fileURLToPath(new URL("../.env.schema", import.meta.url));
271271
const lines = fs.readFileSync(schemaPath, "utf8").split(/\r?\n/);
272272

273273
const gatewayWorkspaceIndex = lines.findIndex((line) => line.startsWith("GATEWAY_BROKER_WORKSPACE_ID="));

0 commit comments

Comments
 (0)