Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

chore: fix SIGINT handling in watch mode (#35910)

Max Schmittdee0535480cb
diff --git a/utils/build/build.js b/utils/build/build.js
index a37acd86d1..fc21ba10b1 100644
--- a/utils/build/build.js
+++ b/utils/build/build.js
@@ -560,6 +560,9 @@ function cleanup() {
}
}
process.on('exit', cleanup);
-process.on('SIGINT', cleanup);
+process.on('SIGINT', () => {
+ cleanup();
+ process.exit(0);
+});
watchMode ? runWatch() : runBuild();