fix: modify test code about stdio.test
Signed-off-by: sunrabbit123 <qudwls185@naver.com>
This commit is contained in:
parent
cd359edabc
commit
9cca20115f
1 changed files with 55 additions and 22 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import { StdioClientTransport } from "./stdio.js";
|
||||
import { getDefaultEnvironment, StdioClientTransport } from "./stdio.js";
|
||||
import spawn from "cross-spawn";
|
||||
import { JSONRPCMessage } from "../types.js";
|
||||
import { ChildProcess } from "node:child_process";
|
||||
|
|
@ -72,7 +72,10 @@ describe("StdioClientTransport using cross-spawn", () => {
|
|||
"test-command",
|
||||
[],
|
||||
expect.objectContaining({
|
||||
env: customEnv
|
||||
env: {
|
||||
...customEnv,
|
||||
...getDefaultEnvironment()
|
||||
}
|
||||
})
|
||||
);
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue