test: make CI fixture invocations portable

This commit is contained in:
Tobi Lütke 2026-05-09 18:45:56 +00:00
parent 4505d8132e
commit b32ee4e660
No known key found for this signature in database
2 changed files with 2 additions and 1 deletions

View File

@ -1438,6 +1438,7 @@ describe("mcp http daemon", () => {
...process.env,
INDEX_PATH: daemonDbPath,
QMD_CONFIG_DIR: daemonConfigDir,
PWD: fixturesDir,
...options.env,
},
stdio: ["ignore", "pipe", "pipe"],

View File

@ -9,7 +9,7 @@ const repoRoot = resolve(dirname(fileURLToPath(import.meta.url)), "..");
describe("Node ESM entrypoints", () => {
test("CLI --index path normalizes via setIndexName/setConfigIndexName under Node 22+", () => {
execFileSync("bun", ["run", "build"], {
execFileSync("npm", ["run", "build"], {
cwd: repoRoot,
encoding: "utf-8",
stdio: "pipe",