Assert hello launchCwd metadata in runtime test
Co-authored-by: Theo Browne <[email protected]>
This commit is contained in:
1 parent
ac6bae97fb
commit
8f2e258849
1 file changed
+4
@@ -126,6 +126,10 @@ describe("runtimeApiServer", () => {
|
||||
const client = await connectClient(server.wsUrl);
|
||||
const hello = await client.nextMessage();
|
||||
expect(hello.type).toBe("hello");
|
||||
if (hello.type !== "hello") {
|
||||
throw new Error("Expected hello message.");
|
||||
}
|
||||
expect(hello.launchCwd).toBe(process.cwd());
|
||||
|
||||
const response = await sendRequest(
|
||||
client.socket,
|
||||
|
||||
Reference in new issue
Block a user