chore: enable @typescript-eslint/no-floating-promises rule (#260)

This commit is contained in:
Max Schmitt
2025-04-23 16:03:30 +02:00
committed by GitHub
parent 586492a3f0
commit b9dc323734
5 changed files with 12 additions and 4 deletions

View File

@@ -53,7 +53,7 @@ export const test = baseTest.extend<TestFixtures, WorkerFixtures>({
const userDataDir = testInfo.outputPath('user-data-dir');
let client: StdioClientTransport | undefined;
use(async options => {
await use(async options => {
const args = ['--user-data-dir', userDataDir];
if (mcpHeadless)
args.push('--headless');

View File

@@ -42,8 +42,8 @@ test('browser_network_requests', async ({ client, server }) => {
},
});
expect.poll(() => client.callTool({
await expect.poll(() => client.callTool({
name: 'browser_network_requests',
arguments: {},
})).toHaveTextContent(`[GET] http://localhost:8907/json => [200] OK`);
})).toHaveTextContent(`[GET] http://localhost:${server.PORT}/json => [200] OK`);
});