@xylabs/jest-helpers 2.10.13 → 2.10.15
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/package.json +3 -3
- package/dist/index.d.mts +0 -22
- package/dist/index.d.ts +0 -22
- package/dist/index.js +0 -43
- package/dist/index.js.map +0 -1
- package/dist/index.mjs +0 -14
- package/dist/index.mjs.map +0 -1
package/package.json
CHANGED
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
"esm"
|
|
53
53
|
],
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@xylabs/ts-scripts-yarn3": "^2.19.
|
|
56
|
-
"@xylabs/tsconfig": "^2.19.
|
|
55
|
+
"@xylabs/ts-scripts-yarn3": "^2.19.9",
|
|
56
|
+
"@xylabs/tsconfig": "^2.19.9",
|
|
57
57
|
"jest": "^29.6.4",
|
|
58
58
|
"publint": "^0.2.2",
|
|
59
59
|
"tsup": "^7.2.0"
|
|
@@ -69,5 +69,5 @@
|
|
|
69
69
|
"url": "https://github.com/xylabs/sdk-js.git"
|
|
70
70
|
},
|
|
71
71
|
"sideEffects": false,
|
|
72
|
-
"version": "2.10.
|
|
72
|
+
"version": "2.10.15"
|
|
73
73
|
}
|
package/dist/index.d.mts
DELETED
|
@@ -1,22 +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
|
-
declare const describeIf: <T>(expr?: T | null | undefined) => jest.Describe;
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Conditionally runs or skips the it
|
|
10
|
-
* @param expr The condition to evaluate
|
|
11
|
-
* @returns If the condition is true, it, otherwise skips
|
|
12
|
-
*/
|
|
13
|
-
declare const itIf: <T>(expr?: T | null | undefined) => jest.It;
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Conditionally runs or skips the test
|
|
17
|
-
* @param expr The condition to evaluate
|
|
18
|
-
* @returns If the condition is true, test, otherwise skips
|
|
19
|
-
*/
|
|
20
|
-
declare const testIf: <T>(expr?: T | null | undefined) => jest.It;
|
|
21
|
-
|
|
22
|
-
export { describeIf, itIf, testIf };
|
package/dist/index.d.ts
DELETED
|
@@ -1,22 +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
|
-
declare const describeIf: <T>(expr?: T | null | undefined) => jest.Describe;
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Conditionally runs or skips the it
|
|
10
|
-
* @param expr The condition to evaluate
|
|
11
|
-
* @returns If the condition is true, it, otherwise skips
|
|
12
|
-
*/
|
|
13
|
-
declare const itIf: <T>(expr?: T | null | undefined) => jest.It;
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Conditionally runs or skips the test
|
|
17
|
-
* @param expr The condition to evaluate
|
|
18
|
-
* @returns If the condition is true, test, otherwise skips
|
|
19
|
-
*/
|
|
20
|
-
declare const testIf: <T>(expr?: T | null | undefined) => jest.It;
|
|
21
|
-
|
|
22
|
-
export { describeIf, itIf, testIf };
|
package/dist/index.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
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);
|
|
19
|
-
|
|
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);
|
|
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;
|
|
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
DELETED
|
@@ -1 +0,0 @@
|
|
|
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
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
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
DELETED
|
@@ -1 +0,0 @@
|
|
|
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":[]}
|