@xylabs/jest-helpers 2.11.3 → 2.11.5
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/index.js +39 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/dist/describeIf.js +0 -11
- package/dist/describeIf.js.map +0 -1
- package/dist/describeIf.mjs +0 -9
- package/dist/describeIf.mjs.map +0 -1
- package/dist/itIf.js +0 -11
- package/dist/itIf.js.map +0 -1
- package/dist/itIf.mjs +0 -9
- package/dist/itIf.mjs.map +0 -1
- package/dist/testIf.js +0 -11
- package/dist/testIf.js.map +0 -1
- package/dist/testIf.mjs +0 -9
- package/dist/testIf.mjs.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,12 +1,43 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
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
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
2
19
|
|
|
3
|
-
|
|
4
|
-
var
|
|
5
|
-
|
|
20
|
+
// src/index.ts
|
|
21
|
+
var src_exports = {};
|
|
22
|
+
__export(src_exports, {
|
|
23
|
+
describeIf: () => describeIf,
|
|
24
|
+
itIf: () => itIf,
|
|
25
|
+
testIf: () => testIf
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(src_exports);
|
|
6
28
|
|
|
29
|
+
// src/describeIf.ts
|
|
30
|
+
var describeIf = (expr) => expr ? describe : describe.skip;
|
|
7
31
|
|
|
32
|
+
// src/itIf.ts
|
|
33
|
+
var itIf = (expr) => expr ? it : it.skip;
|
|
8
34
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
35
|
+
// src/testIf.ts
|
|
36
|
+
var testIf = (expr) => expr ? test : test.skip;
|
|
37
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
38
|
+
0 && (module.exports = {
|
|
39
|
+
describeIf,
|
|
40
|
+
itIf,
|
|
41
|
+
testIf
|
|
42
|
+
});
|
|
43
|
+
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
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/index.mjs
CHANGED
|
@@ -1,4 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
// src/describeIf.ts
|
|
2
|
+
var describeIf = (expr) => expr ? describe : describe.skip;
|
|
3
|
+
|
|
4
|
+
// src/itIf.ts
|
|
5
|
+
var itIf = (expr) => expr ? it : it.skip;
|
|
6
|
+
|
|
7
|
+
// src/testIf.ts
|
|
8
|
+
var testIf = (expr) => expr ? test : test.skip;
|
|
9
|
+
export {
|
|
10
|
+
describeIf,
|
|
11
|
+
itIf,
|
|
12
|
+
testIf
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=index.mjs.map
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../src/describeIf.ts","../src/itIf.ts","../src/testIf.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","/**\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":";AAKO,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/package.json
CHANGED
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"esm"
|
|
49
49
|
],
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@xylabs/ts-scripts-yarn3": "^3.0.
|
|
52
|
-
"@xylabs/tsconfig": "^3.0.
|
|
51
|
+
"@xylabs/ts-scripts-yarn3": "^3.0.25",
|
|
52
|
+
"@xylabs/tsconfig": "^3.0.25",
|
|
53
53
|
"jest": "^29.7.0",
|
|
54
54
|
"typescript": "^5.2.2"
|
|
55
55
|
},
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
"url": "https://github.com/xylabs/sdk-js.git"
|
|
65
65
|
},
|
|
66
66
|
"sideEffects": false,
|
|
67
|
-
"version": "2.11.
|
|
67
|
+
"version": "2.11.5"
|
|
68
68
|
}
|
package/dist/describeIf.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Conditionally runs or skips the describe
|
|
5
|
-
* @param expr The condition to evaluate
|
|
6
|
-
* @returns If the condition is true, describe, otherwise skips
|
|
7
|
-
*/
|
|
8
|
-
const describeIf = (expr) => (expr ? describe : describe.skip);
|
|
9
|
-
|
|
10
|
-
exports.describeIf = describeIf;
|
|
11
|
-
//# sourceMappingURL=describeIf.js.map
|
package/dist/describeIf.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"describeIf.js","sources":["../src/describeIf.ts"],"sourcesContent":[null],"names":[],"mappings":";;;AAAA;;;;AAIG,MAAA,UAAA,GAAA,CAAA,IAAA,MAAA,IAAA,GAAA,QAAA,GAAA,QAAA,CAAA,IAAA;;;;"}
|
package/dist/describeIf.mjs
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Conditionally runs or skips the describe
|
|
3
|
-
* @param expr The condition to evaluate
|
|
4
|
-
* @returns If the condition is true, describe, otherwise skips
|
|
5
|
-
*/
|
|
6
|
-
const describeIf = (expr) => (expr ? describe : describe.skip);
|
|
7
|
-
|
|
8
|
-
export { describeIf };
|
|
9
|
-
//# sourceMappingURL=describeIf.mjs.map
|
package/dist/describeIf.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"describeIf.mjs","sources":["../src/describeIf.ts"],"sourcesContent":[null],"names":[],"mappings":";AAAA;;;;AAIG,MAAA,UAAA,GAAA,CAAA,IAAA,MAAA,IAAA,GAAA,QAAA,GAAA,QAAA,CAAA,IAAA;;;;"}
|
package/dist/itIf.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Conditionally runs or skips the it
|
|
5
|
-
* @param expr The condition to evaluate
|
|
6
|
-
* @returns If the condition is true, it, otherwise skips
|
|
7
|
-
*/
|
|
8
|
-
const itIf = (expr) => (expr ? it : it.skip);
|
|
9
|
-
|
|
10
|
-
exports.itIf = itIf;
|
|
11
|
-
//# sourceMappingURL=itIf.js.map
|
package/dist/itIf.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"itIf.js","sources":["../src/itIf.ts"],"sourcesContent":[null],"names":[],"mappings":";;;AAAA;;;;AAIG,MAAA,IAAA,GAAA,CAAA,IAAA,MAAA,IAAA,GAAA,EAAA,GAAA,EAAA,CAAA,IAAA;;;;"}
|
package/dist/itIf.mjs
DELETED
package/dist/itIf.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"itIf.mjs","sources":["../src/itIf.ts"],"sourcesContent":[null],"names":[],"mappings":";AAAA;;;;AAIG,MAAA,IAAA,GAAA,CAAA,IAAA,MAAA,IAAA,GAAA,EAAA,GAAA,EAAA,CAAA,IAAA;;;;"}
|
package/dist/testIf.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Conditionally runs or skips the test
|
|
5
|
-
* @param expr The condition to evaluate
|
|
6
|
-
* @returns If the condition is true, test, otherwise skips
|
|
7
|
-
*/
|
|
8
|
-
const testIf = (expr) => (expr ? test : test.skip);
|
|
9
|
-
|
|
10
|
-
exports.testIf = testIf;
|
|
11
|
-
//# sourceMappingURL=testIf.js.map
|
package/dist/testIf.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"testIf.js","sources":["../src/testIf.ts"],"sourcesContent":[null],"names":[],"mappings":";;;AAAA;;;;AAIG,MAAA,MAAA,GAAA,CAAA,IAAA,MAAA,IAAA,GAAA,IAAA,GAAA,IAAA,CAAA,IAAA;;;;"}
|
package/dist/testIf.mjs
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Conditionally runs or skips the test
|
|
3
|
-
* @param expr The condition to evaluate
|
|
4
|
-
* @returns If the condition is true, test, otherwise skips
|
|
5
|
-
*/
|
|
6
|
-
const testIf = (expr) => (expr ? test : test.skip);
|
|
7
|
-
|
|
8
|
-
export { testIf };
|
|
9
|
-
//# sourceMappingURL=testIf.mjs.map
|
package/dist/testIf.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"testIf.mjs","sources":["../src/testIf.ts"],"sourcesContent":[null],"names":[],"mappings":";AAAA;;;;AAIG,MAAA,MAAA,GAAA,CAAA,IAAA,MAAA,IAAA,GAAA,IAAA,GAAA,IAAA,CAAA,IAAA;;;;"}
|