@xylabs/jest-helpers 2.11.3 → 2.11.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.
@@ -4,5 +4,5 @@
4
4
  * @param expr The condition to evaluate
5
5
  * @returns If the condition is true, describe, otherwise skips
6
6
  */
7
- export declare const describeIf: <T>(expr?: T | null | undefined) => jest.Describe;
7
+ export declare const describeIf: <T>(expr?: T) => jest.Describe;
8
8
  //# sourceMappingURL=describeIf.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"describeIf.d.ts","sourceRoot":"","sources":["../src/describeIf.ts"],"names":[],"mappings":";AAAA;;;;GAIG;AACH,eAAO,MAAM,UAAU,mDAA4D,CAAA"}
1
+ {"version":3,"file":"describeIf.d.ts","sourceRoot":"","sources":["../src/describeIf.ts"],"names":[],"mappings":";AAAA;;;;GAIG;AACH,eAAO,MAAM,UAAU,gCAA4D,CAAA"}
@@ -4,5 +4,5 @@
4
4
  * @param expr The condition to evaluate
5
5
  * @returns If the condition is true, describe, otherwise skips
6
6
  */
7
- export declare const describeIf: <T>(expr?: T | null | undefined) => jest.Describe;
7
+ export declare const describeIf: <T>(expr?: T) => jest.Describe;
8
8
  //# sourceMappingURL=describeIf.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"describeIf.d.ts","sourceRoot":"","sources":["../src/describeIf.ts"],"names":[],"mappings":";AAAA;;;;GAIG;AACH,eAAO,MAAM,UAAU,mDAA4D,CAAA"}
1
+ {"version":3,"file":"describeIf.d.ts","sourceRoot":"","sources":["../src/describeIf.ts"],"names":[],"mappings":";AAAA;;;;GAIG;AACH,eAAO,MAAM,UAAU,gCAA4D,CAAA"}
package/dist/index.js CHANGED
@@ -1,12 +1,43 @@
1
- 'use strict';
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
- var describeIf = require('./describeIf.js');
4
- var itIf = require('./itIf.js');
5
- var testIf = require('./testIf.js');
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
- exports.describeIf = describeIf.describeIf;
10
- exports.itIf = itIf.itIf;
11
- exports.testIf = testIf.testIf;
12
- //# sourceMappingURL=index.js.map
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,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"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/index.mjs CHANGED
@@ -1,4 +1,14 @@
1
- export { describeIf } from './describeIf.mjs';
2
- export { itIf } from './itIf.mjs';
3
- export { testIf } from './testIf.mjs';
4
- //# sourceMappingURL=index.mjs.map
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
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
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/dist/itIf.d.mts CHANGED
@@ -4,5 +4,5 @@
4
4
  * @param expr The condition to evaluate
5
5
  * @returns If the condition is true, it, otherwise skips
6
6
  */
7
- export declare const itIf: <T>(expr?: T | null | undefined) => jest.It;
7
+ export declare const itIf: <T>(expr?: T) => jest.It;
8
8
  //# sourceMappingURL=itIf.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"itIf.d.ts","sourceRoot":"","sources":["../src/itIf.ts"],"names":[],"mappings":";AAAA;;;;GAIG;AACH,eAAO,MAAM,IAAI,6CAAgD,CAAA"}
1
+ {"version":3,"file":"itIf.d.ts","sourceRoot":"","sources":["../src/itIf.ts"],"names":[],"mappings":";AAAA;;;;GAIG;AACH,eAAO,MAAM,IAAI,0BAAgD,CAAA"}
package/dist/itIf.d.ts CHANGED
@@ -4,5 +4,5 @@
4
4
  * @param expr The condition to evaluate
5
5
  * @returns If the condition is true, it, otherwise skips
6
6
  */
7
- export declare const itIf: <T>(expr?: T | null | undefined) => jest.It;
7
+ export declare const itIf: <T>(expr?: T) => jest.It;
8
8
  //# sourceMappingURL=itIf.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"itIf.d.ts","sourceRoot":"","sources":["../src/itIf.ts"],"names":[],"mappings":";AAAA;;;;GAIG;AACH,eAAO,MAAM,IAAI,6CAAgD,CAAA"}
1
+ {"version":3,"file":"itIf.d.ts","sourceRoot":"","sources":["../src/itIf.ts"],"names":[],"mappings":";AAAA;;;;GAIG;AACH,eAAO,MAAM,IAAI,0BAAgD,CAAA"}
package/dist/testIf.d.mts CHANGED
@@ -4,5 +4,5 @@
4
4
  * @param expr The condition to evaluate
5
5
  * @returns If the condition is true, test, otherwise skips
6
6
  */
7
- export declare const testIf: <T>(expr?: T | null | undefined) => jest.It;
7
+ export declare const testIf: <T>(expr?: T) => jest.It;
8
8
  //# sourceMappingURL=testIf.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"testIf.d.ts","sourceRoot":"","sources":["../src/testIf.ts"],"names":[],"mappings":";AAAA;;;;GAIG;AACH,eAAO,MAAM,MAAM,6CAAoD,CAAA"}
1
+ {"version":3,"file":"testIf.d.ts","sourceRoot":"","sources":["../src/testIf.ts"],"names":[],"mappings":";AAAA;;;;GAIG;AACH,eAAO,MAAM,MAAM,0BAAoD,CAAA"}
package/dist/testIf.d.ts CHANGED
@@ -4,5 +4,5 @@
4
4
  * @param expr The condition to evaluate
5
5
  * @returns If the condition is true, test, otherwise skips
6
6
  */
7
- export declare const testIf: <T>(expr?: T | null | undefined) => jest.It;
7
+ export declare const testIf: <T>(expr?: T) => jest.It;
8
8
  //# sourceMappingURL=testIf.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"testIf.d.ts","sourceRoot":"","sources":["../src/testIf.ts"],"names":[],"mappings":";AAAA;;;;GAIG;AACH,eAAO,MAAM,MAAM,6CAAoD,CAAA"}
1
+ {"version":3,"file":"testIf.d.ts","sourceRoot":"","sources":["../src/testIf.ts"],"names":[],"mappings":";AAAA;;;;GAIG;AACH,eAAO,MAAM,MAAM,0BAAoD,CAAA"}
package/package.json CHANGED
@@ -48,8 +48,8 @@
48
48
  "esm"
49
49
  ],
50
50
  "devDependencies": {
51
- "@xylabs/ts-scripts-yarn3": "^3.0.0",
52
- "@xylabs/tsconfig": "^3.0.0",
51
+ "@xylabs/ts-scripts-yarn3": "^3.0.20",
52
+ "@xylabs/tsconfig": "^3.0.20",
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.3"
67
+ "version": "2.11.4"
68
68
  }
@@ -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
@@ -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;;;;"}
@@ -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
@@ -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
@@ -1,9 +0,0 @@
1
- /**
2
- * Conditionally runs or skips the it
3
- * @param expr The condition to evaluate
4
- * @returns If the condition is true, it, otherwise skips
5
- */
6
- const itIf = (expr) => (expr ? it : it.skip);
7
-
8
- export { itIf };
9
- //# sourceMappingURL=itIf.mjs.map
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
@@ -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
@@ -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;;;;"}