Removing method stackWrap

This commit is contained in:
Jarosław Sadziński 2024-08-06 19:53:23 +02:00
parent b3b72683d0
commit 19cc710d9b

View File

@ -60,7 +60,7 @@ for (const arg of process.argv) {
// start and end of the worker process.
if (process.env.MOCHA_WORKER_ID !== undefined &&
process.env.MOCHA_WEBDRIVER !== undefined) {
const {getMochaHooks, setDriver, createDriver, stackWrapDriverMethods} = require('mocha-webdriver');
const {getMochaHooks, setDriver, createDriver} = require('mocha-webdriver');
const mochaHooks = getMochaHooks();
mochaHooks.beforeAll = async function() {
console.debug('Hijiking mocha webdriver');
@ -70,7 +70,6 @@ if (process.env.MOCHA_WORKER_ID !== undefined &&
return;
}
this.timeout('20s');
stackWrapDriverMethods();
setDriver(await createDriver().catch(err => {
console.error('Failed to create driver:', err);