@qavajs/core
Version:
qavajs framework core
19 lines • 599 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.BeforeExecution = BeforeExecution;
exports.AfterExecution = AfterExecution;
const cucumber_1 = require("@cucumber/cucumber");
const isCoordinator = process.env.QAVAJS_COORDINATOR === '1';
function BeforeExecution(fn) {
if (!isCoordinator)
return;
fn.isTestExecutionHook = true;
(0, cucumber_1.BeforeAll)(fn);
}
function AfterExecution(fn) {
if (!isCoordinator)
return;
fn.isTestExecutionHook = true;
(0, cucumber_1.AfterAll)(fn);
}
//# sourceMappingURL=executionHooks.js.map