Skip to content

Commit 3346054

Browse files
authored
chore: preload browser before integration tests (#1109)
* chore: preload browser before integration tests * test: increase time-out for standalone tests
1 parent 8060b2d commit 3346054

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"prettier-watch": "onchange '**' --exclude-path .prettierignore -- prettier --write {{changed}}",
3333
"test-unit": "_mocha \"test/!(integration)/**/*.js\"",
3434
"test": "npm run test-unit && npm run check-types && npm run lint",
35-
"test-integration": "mocha -r ts-node/register test/integration/standalone/standalone.test.ts",
35+
"test-integration": "mocha -r ts-node/register -r test/integration/standalone/preload-browser.fixture.ts test/integration/standalone/standalone.test.ts",
3636
"toc": "doctoc docs --title '### Contents'",
3737
"precommit": "npm run lint",
3838
"prepack": "npm run clean && npm run build",

test/integration/standalone/standalone.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ describe("Standalone Browser E2E Tests", function () {
1111
"If all tests have passed, most likely this is caused by a bug in browser cleanup logic, e.g. deleteSession() command.",
1212
);
1313
process.exit(1);
14-
}, 30000).unref();
14+
}, 60000).unref();
1515

1616
let browser: WebdriverIO.Browser;
1717

0 commit comments

Comments
 (0)