Tests: run e2e gateway with node
This commit is contained in:
@@ -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"],
|
||||||
|
|||||||
Reference in New Issue
Block a user