Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9ca8394

Browse files
committed
Avoid error when the puppeeter launch fails
The `afterAll` hook runs even after failures, so it cannot assume that the initialization in `beforeAll` worked.
1 parent dd475e2 commit 9ca8394

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/functional.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ describe('Functional tests using webpack', function () {
126126
});
127127

128128
afterAll(async function () {
129-
await browser.close();
129+
await browser?.close();
130130
});
131131

132132
describe('Basic scenarios.', function () {

0 commit comments

Comments
 (0)