Tests: run e2e gateway with node

This commit is contained in:
Peter Steinberger
2026-01-13 07:06:41 +00:00
parent 779904657f
commit 69e4339af9

View File

@@ -122,9 +122,9 @@ const spawnGatewayInstance = async (name: string): Promise<GatewayInstance> => {
try { try {
child = spawn( child = spawn(
"bun", "node",
[ [
"src/index.ts", "dist/index.js",
"gateway", "gateway",
"--port", "--port",
String(port), String(port),
@@ -222,7 +222,7 @@ const runCliJson = async (
): Promise<unknown> => { ): Promise<unknown> => {
const stdout: string[] = []; const stdout: string[] = [];
const stderr: string[] = []; const stderr: string[] = [];
const child = spawn("bun", ["src/index.ts", ...args], { const child = spawn("node", ["dist/index.js", ...args], {
cwd: process.cwd(), cwd: process.cwd(),
env: { ...process.env, ...env }, env: { ...process.env, ...env },
stdio: ["ignore", "pipe", "pipe"], stdio: ["ignore", "pipe", "pipe"],