@xylabs/jest-helpers 2.12.9 → 2.12.10
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/dist/browser/describeIf.cjs +3 -1
- package/dist/browser/describeIf.cjs.map +1 -1
- package/dist/browser/index.cjs +20 -4
- package/dist/browser/index.cjs.map +1 -1
- package/dist/browser/itIf.cjs +3 -1
- package/dist/browser/itIf.cjs.map +1 -1
- package/dist/browser/testIf.cjs +3 -1
- package/dist/browser/testIf.cjs.map +1 -1
- package/package.json +3 -3
|
@@ -16,10 +16,12 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
return to;
|
|
17
17
|
};
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/describeIf.ts
|
|
19
21
|
var describeIf_exports = {};
|
|
20
22
|
__export(describeIf_exports, {
|
|
21
23
|
describeIf: () => describeIf
|
|
22
24
|
});
|
|
23
25
|
module.exports = __toCommonJS(describeIf_exports);
|
|
24
|
-
|
|
26
|
+
var describeIf = (expr) => expr ? describe : describe.skip;
|
|
25
27
|
//# sourceMappingURL=describeIf.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/describeIf.ts"],"sourcesContent":["/**\n * Conditionally runs or skips the describe\n * @param expr The condition to evaluate\n * @returns If the condition is true, describe, otherwise skips\n */\nexport const describeIf = <T>(expr?: T | null) => (expr ? describe : describe.skip)\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/describeIf.ts"],"sourcesContent":["/**\n * Conditionally runs or skips the describe\n * @param expr The condition to evaluate\n * @returns If the condition is true, describe, otherwise skips\n */\nexport const describeIf = <T>(expr?: T | null) => (expr ? describe : describe.skip)\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAKO,IAAM,aAAa,CAAI,SAAqB,OAAO,WAAW,SAAS;","names":[]}
|
package/dist/browser/index.cjs
CHANGED
|
@@ -3,6 +3,10 @@ var __defProp = Object.defineProperty;
|
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
6
10
|
var __copyProps = (to, from, except, desc) => {
|
|
7
11
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
12
|
for (let key of __getOwnPropNames(from))
|
|
@@ -11,11 +15,23 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
11
15
|
}
|
|
12
16
|
return to;
|
|
13
17
|
};
|
|
14
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/index.ts
|
|
16
21
|
var src_exports = {};
|
|
22
|
+
__export(src_exports, {
|
|
23
|
+
describeIf: () => describeIf,
|
|
24
|
+
itIf: () => itIf,
|
|
25
|
+
testIf: () => testIf
|
|
26
|
+
});
|
|
17
27
|
module.exports = __toCommonJS(src_exports);
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
28
|
+
|
|
29
|
+
// src/describeIf.ts
|
|
30
|
+
var describeIf = (expr) => expr ? describe : describe.skip;
|
|
31
|
+
|
|
32
|
+
// src/itIf.ts
|
|
33
|
+
var itIf = (expr) => expr ? it : it.skip;
|
|
34
|
+
|
|
35
|
+
// src/testIf.ts
|
|
36
|
+
var testIf = (expr) => expr ? test : test.skip;
|
|
21
37
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["export * from './describeIf'\nexport * from './itIf'\nexport * from './testIf'\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts","../../src/describeIf.ts","../../src/itIf.ts","../../src/testIf.ts"],"sourcesContent":["export * from './describeIf'\nexport * from './itIf'\nexport * from './testIf'\n","/**\n * Conditionally runs or skips the describe\n * @param expr The condition to evaluate\n * @returns If the condition is true, describe, otherwise skips\n */\nexport const describeIf = <T>(expr?: T | null) => (expr ? describe : describe.skip)\n","/**\n * Conditionally runs or skips the it\n * @param expr The condition to evaluate\n * @returns If the condition is true, it, otherwise skips\n */\nexport const itIf = <T>(expr?: T | null) => (expr ? it : it.skip)\n","/**\n * Conditionally runs or skips the test\n * @param expr The condition to evaluate\n * @returns If the condition is true, test, otherwise skips\n */\nexport const testIf = <T>(expr?: T | null) => (expr ? test : test.skip)\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACKO,IAAM,aAAa,CAAI,SAAqB,OAAO,WAAW,SAAS;;;ACAvE,IAAM,OAAO,CAAI,SAAqB,OAAO,KAAK,GAAG;;;ACArD,IAAM,SAAS,CAAI,SAAqB,OAAO,OAAO,KAAK;","names":[]}
|
package/dist/browser/itIf.cjs
CHANGED
|
@@ -16,10 +16,12 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
return to;
|
|
17
17
|
};
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/itIf.ts
|
|
19
21
|
var itIf_exports = {};
|
|
20
22
|
__export(itIf_exports, {
|
|
21
23
|
itIf: () => itIf
|
|
22
24
|
});
|
|
23
25
|
module.exports = __toCommonJS(itIf_exports);
|
|
24
|
-
|
|
26
|
+
var itIf = (expr) => expr ? it : it.skip;
|
|
25
27
|
//# sourceMappingURL=itIf.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/itIf.ts"],"sourcesContent":["/**\n * Conditionally runs or skips the it\n * @param expr The condition to evaluate\n * @returns If the condition is true, it, otherwise skips\n */\nexport const itIf = <T>(expr?: T | null) => (expr ? it : it.skip)\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/itIf.ts"],"sourcesContent":["/**\n * Conditionally runs or skips the it\n * @param expr The condition to evaluate\n * @returns If the condition is true, it, otherwise skips\n */\nexport const itIf = <T>(expr?: T | null) => (expr ? it : it.skip)\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAKO,IAAM,OAAO,CAAI,SAAqB,OAAO,KAAK,GAAG;","names":[]}
|
package/dist/browser/testIf.cjs
CHANGED
|
@@ -16,10 +16,12 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
return to;
|
|
17
17
|
};
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/testIf.ts
|
|
19
21
|
var testIf_exports = {};
|
|
20
22
|
__export(testIf_exports, {
|
|
21
23
|
testIf: () => testIf
|
|
22
24
|
});
|
|
23
25
|
module.exports = __toCommonJS(testIf_exports);
|
|
24
|
-
|
|
26
|
+
var testIf = (expr) => expr ? test : test.skip;
|
|
25
27
|
//# sourceMappingURL=testIf.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/testIf.ts"],"sourcesContent":["/**\n * Conditionally runs or skips the test\n * @param expr The condition to evaluate\n * @returns If the condition is true, test, otherwise skips\n */\nexport const testIf = <T>(expr?: T | null) => (expr ? test : test.skip)\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/testIf.ts"],"sourcesContent":["/**\n * Conditionally runs or skips the test\n * @param expr The condition to evaluate\n * @returns If the condition is true, test, otherwise skips\n */\nexport const testIf = <T>(expr?: T | null) => (expr ? test : test.skip)\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAKO,IAAM,SAAS,CAAI,SAAqB,OAAO,OAAO,KAAK;","names":[]}
|
package/package.json
CHANGED
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"esm"
|
|
40
40
|
],
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@xylabs/ts-scripts-yarn3": "^3.0.
|
|
43
|
-
"@xylabs/tsconfig": "^3.0.
|
|
42
|
+
"@xylabs/ts-scripts-yarn3": "^3.0.76",
|
|
43
|
+
"@xylabs/tsconfig": "^3.0.76",
|
|
44
44
|
"jest": "^29.7.0",
|
|
45
45
|
"typescript": "^5.2.2"
|
|
46
46
|
},
|
|
@@ -55,6 +55,6 @@
|
|
|
55
55
|
"url": "https://github.com/xylabs/sdk-js.git"
|
|
56
56
|
},
|
|
57
57
|
"sideEffects": false,
|
|
58
|
-
"version": "2.12.
|
|
58
|
+
"version": "2.12.10",
|
|
59
59
|
"type": "module"
|
|
60
60
|
}
|