We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 439e79c commit 3f1626dCopy full SHA for 3f1626d
test/integrationTest.js
@@ -52,10 +52,15 @@ const runTest = async (browser) => {
52
};
53
54
(async () => {
55
- const browser = await puppeteer.launch({args: ['--allow-file-access-from-files']});
56
- const success = await runTest(browser);
57
- browser.close();
+ try {
+ const browser = await puppeteer.launch({args: ['--allow-file-access-from-files']});
+ const success = await runTest(browser);
58
+ browser.close();
59
- process.exit(success ? 0 : 1);
60
+ process.exit(success ? 0 : 1);
61
+ } catch (e) {
62
+ console.error(e);
63
+ process.exit(2);
64
+ }
65
})();
66
/* jshint ignore:end */
0 commit comments