chore: refactor tests for real
This commit is contained in:
parent
b477b7c26f
commit
3b0e4c3b27
3 changed files with 223 additions and 273 deletions
|
|
@ -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();
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue