mirror of
https://github.com/microsoft/playwright-mcp.git
synced 2026-02-01 20:23:38 +00:00
chore: refactor tests for real
This commit is contained in:
@@ -79,8 +79,10 @@ export function createServerWithTools(options: Options): Server {
|
||||
return { contents };
|
||||
});
|
||||
|
||||
const oldClose = server.close.bind(server);
|
||||
|
||||
server.close = async () => {
|
||||
await server.close();
|
||||
await oldClose();
|
||||
await context.close();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user