testplane 9.0.3 → 9.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/package.json +1 -1
- package/build/src/globals.d.ts +6 -7
- package/build/src/globals.js +36 -6
- package/build/src/globals.js.map +1 -1
- package/package.json +1 -1
package/build/package.json
CHANGED
package/build/src/globals.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const hermione: GlobalHermioneType;
|
|
1
|
+
export declare const it: import(".").TestDefinition;
|
|
2
|
+
export declare const describe: import(".").SuiteDefinition;
|
|
3
|
+
export declare const beforeEach: import(".").TestHookDefinition;
|
|
4
|
+
export declare const afterEach: import(".").TestHookDefinition;
|
|
5
|
+
export declare const testplane: import("./types").GlobalHelper;
|
|
6
|
+
export declare const hermione: import("./types").GlobalHelper;
|
package/build/src/globals.js
CHANGED
|
@@ -1,10 +1,40 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.hermione = exports.testplane = exports.afterEach = exports.beforeEach = exports.describe = exports.it = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
const typedGlobals = globalThis;
|
|
5
|
+
function itFunc(...args) {
|
|
6
|
+
return typedGlobals.it.apply(this, args);
|
|
7
|
+
}
|
|
8
|
+
itFunc.only = function (...args) {
|
|
9
|
+
return typedGlobals.it.only.apply(this, args);
|
|
10
|
+
};
|
|
11
|
+
itFunc.skip = function (...args) {
|
|
12
|
+
return typedGlobals.it.skip.apply(this, args);
|
|
13
|
+
};
|
|
14
|
+
function describeFunc(...args) {
|
|
15
|
+
return typedGlobals.describe.apply(this, args);
|
|
16
|
+
}
|
|
17
|
+
describeFunc.only = function (...args) {
|
|
18
|
+
return typedGlobals.describe.only.apply(this, args);
|
|
19
|
+
};
|
|
20
|
+
describeFunc.skip = function (...args) {
|
|
21
|
+
return typedGlobals.describe.skip.apply(this, args);
|
|
22
|
+
};
|
|
23
|
+
function beforeEachFunc(...args) {
|
|
24
|
+
return typedGlobals.beforeEach.apply(this, args);
|
|
25
|
+
}
|
|
26
|
+
function afterEachFunc(...args) {
|
|
27
|
+
return typedGlobals.afterEach.apply(this, args);
|
|
28
|
+
}
|
|
29
|
+
const testplaneProxy = new Proxy(typedGlobals.testplane, {
|
|
30
|
+
get(_, prop) {
|
|
31
|
+
return typedGlobals.testplane[prop];
|
|
32
|
+
},
|
|
33
|
+
});
|
|
34
|
+
exports.it = itFunc;
|
|
35
|
+
exports.describe = describeFunc;
|
|
36
|
+
exports.beforeEach = beforeEachFunc;
|
|
37
|
+
exports.afterEach = afterEachFunc;
|
|
38
|
+
exports.testplane = testplaneProxy;
|
|
39
|
+
exports.hermione = testplaneProxy;
|
|
10
40
|
//# sourceMappingURL=globals.js.map
|
package/build/src/globals.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"globals.js","sourceRoot":"","sources":["../../src/globals.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"globals.js","sourceRoot":"","sources":["../../src/globals.ts"],"names":[],"mappings":";;;AAUA,MAAM,YAAY,GAAG,UAAyC,CAAC;AAE/D,SAAS,MAAM,CAAgB,GAAG,IAA8B;IAC5D,OAAO,YAAY,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AAC7C,CAAC;AAED,MAAM,CAAC,IAAI,GAAG,UAAyB,GAAG,IAAsC;IAC5E,OAAO,YAAY,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AAClD,CAAC,CAAC;AAEF,MAAM,CAAC,IAAI,GAAG,UAAyB,GAAG,I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