From 8283a0932218a63d708c27143905188384b44c0c Mon Sep 17 00:00:00 2001 From: Simon Knott Date: Thu, 31 Oct 2024 12:19:54 +0100 Subject: [PATCH] windows --- packages/playwright/src/plugins/webServerPlugin.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/playwright/src/plugins/webServerPlugin.ts b/packages/playwright/src/plugins/webServerPlugin.ts index 6a13afcad3..0314deb245 100644 --- a/packages/playwright/src/plugins/webServerPlugin.ts +++ b/packages/playwright/src/plugins/webServerPlugin.ts @@ -104,6 +104,9 @@ export class WebServerPlugin implements TestRunnerPlugin { stdio: 'stdin', shell: true, attemptToGracefullyClose: async () => { + if (process.platform === 'win32') + throw new Error('Graceful shutdown is not supported on Windows'); + const success = launchedProcess.kill('SIGINT'); if (!success) throw new Error(`SIGINT didn't succeed, fall back to non-graceful shutdown`);