mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
test: do not handle sigint for all the browsers launched in tests (#2990)
Puppeteer's default handler issues "process.exit(130)", causing test runner to shut too early. As a result, test runner doesn't show run summary.
This commit is contained in:
parent
2c9599496a
commit
4bbaa9d4f5
@ -43,6 +43,7 @@ assert(fs.existsSync(puppeteer.executablePath()), `Chromium is not Downloaded. R
|
|||||||
|
|
||||||
const slowMo = parseInt((process.env.SLOW_MO || '0').trim(), 10);
|
const slowMo = parseInt((process.env.SLOW_MO || '0').trim(), 10);
|
||||||
const defaultBrowserOptions = {
|
const defaultBrowserOptions = {
|
||||||
|
handleSIGINT: false,
|
||||||
executablePath,
|
executablePath,
|
||||||
slowMo,
|
slowMo,
|
||||||
headless,
|
headless,
|
||||||
|
Loading…
Reference in New Issue
Block a user