UNPKG

testplane

Version:

Tests framework based on mocha and wdio

40 lines 1.3 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.hermione = exports.testplane = exports.afterEach = exports.beforeEach = exports.describe = exports.it = void 0; const typedGlobals = globalThis; function itFunc(...args) { return typedGlobals.it.apply(this, args); } itFunc.only = function (...args) { return typedGlobals.it.only.apply(this, args); }; itFunc.skip = function (...args) { return typedGlobals.it.skip.apply(this, args); }; function describeFunc(...args) { return typedGlobals.describe.apply(this, args); } describeFunc.only = function (...args) { return typedGlobals.describe.only.apply(this, args); }; describeFunc.skip = function (...args) { return typedGlobals.describe.skip.apply(this, args); }; function beforeEachFunc(...args) { return typedGlobals.beforeEach.apply(this, args); } function afterEachFunc(...args) { return typedGlobals.afterEach.apply(this, args); } const testplaneProxy = new Proxy({}, { get(_, prop) { return typedGlobals.testplane[prop]; }, }); exports.it = itFunc; exports.describe = describeFunc; exports.beforeEach = beforeEachFunc; exports.afterEach = afterEachFunc; exports.testplane = testplaneProxy; exports.hermione = testplaneProxy; //# sourceMappingURL=globals.js.map