We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d7f67fa commit b9d33cdCopy full SHA for b9d33cd
1 file changed
test/e2e/puppeteer.js
@@ -121,7 +121,24 @@ const app = express();
121
app.use( express.static( path.resolve() ) );
122
const server = app.listen( port, main );
123
124
-process.on( 'SIGINT', () => close() );
+process.on( 'SIGINT', async () => {
125
+
126
+ console.log( '\nInterrupted, cleaning up...' );
127
128
+ if ( browser ) {
129
130
+ try {
131
132
+ await browser.close();
133
134
+ } catch {}
135
136
+ }
137
138
+ server.close();
139
+ process.exit( 1 );
140
141
+} );
142
143
async function main() {
144
0 commit comments