mirror of https://github.com/openclaw/openclaw.git
Tests: run e2e gateway with node
This commit is contained in:
parent
779904657f
commit
69e4339af9
|
|
@ -122,9 +122,9 @@ const spawnGatewayInstance = async (name: string): Promise<GatewayInstance> => {
|
|||
|
||||
try {
|
||||
child = spawn(
|
||||
"bun",
|
||||
"node",
|
||||
[
|
||||
"src/index.ts",
|
||||
"dist/index.js",
|
||||
"gateway",
|
||||
"--port",
|
||||
String(port),
|
||||
|
|
@ -222,7 +222,7 @@ const runCliJson = async (
|
|||
): Promise<unknown> => {
|
||||
const stdout: string[] = [];
|
||||
const stderr: string[] = [];
|
||||
const child = spawn("bun", ["src/index.ts", ...args], {
|
||||
const child = spawn("node", ["dist/index.js", ...args], {
|
||||
cwd: process.cwd(),
|
||||
env: { ...process.env, ...env },
|
||||
stdio: ["ignore", "pipe", "pipe"],
|
||||
|
|
|
|||
Loading…
Reference in New Issue