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`);