windows
This commit is contained in:
parent
18f35f820a
commit
8283a09322
|
|
@ -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`);
|
||||
|
|
|
|||
Loading…
Reference in a new issue