@xylabs/jest-helpers 2.11.21 → 2.11.23

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.
@@ -16,12 +16,10 @@ 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
21
19
  var describeIf_exports = {};
22
20
  __export(describeIf_exports, {
23
21
  describeIf: () => describeIf
24
22
  });
25
23
  module.exports = __toCommonJS(describeIf_exports);
26
- var describeIf = (expr) => expr ? describe : describe.skip;
24
+ const describeIf = (expr) => expr ? describe : describe.skip;
27
25
  //# 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":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAKO,IAAM,aAAa,CAAI,SAAqB,OAAO,WAAW,SAAS;","names":[]}
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,MAAM,aAAa,CAAI,SAAqB,OAAO,WAAW,SAAS;","names":[]}
@@ -1,5 +1,4 @@
1
- // src/describeIf.ts
2
- var describeIf = (expr) => expr ? describe : describe.skip;
1
+ const describeIf = (expr) => expr ? describe : describe.skip;
3
2
  export {
4
3
  describeIf
5
4
  };
@@ -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":";AAKO,IAAM,aAAa,CAAI,SAAqB,OAAO,WAAW,SAAS;","names":[]}
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":"AAKO,MAAM,aAAa,CAAI,SAAqB,OAAO,WAAW,SAAS;","names":[]}
@@ -3,10 +3,6 @@ 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
- };
10
6
  var __copyProps = (to, from, except, desc) => {
11
7
  if (from && typeof from === "object" || typeof from === "function") {
12
8
  for (let key of __getOwnPropNames(from))
@@ -15,23 +11,11 @@ var __copyProps = (to, from, except, desc) => {
15
11
  }
16
12
  return to;
17
13
  };
14
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
18
15
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // src/index.ts
21
16
  var src_exports = {};
22
- __export(src_exports, {
23
- describeIf: () => describeIf,
24
- itIf: () => itIf,
25
- testIf: () => testIf
26
- });
27
17
  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;
18
+ __reExport(src_exports, require("./describeIf"), module.exports);
19
+ __reExport(src_exports, require("./itIf"), module.exports);
20
+ __reExport(src_exports, require("./testIf"), module.exports);
37
21
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
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":[]}
1
+ {"version":3,"sources":["../../src/index.ts"],"sourcesContent":["export * from './describeIf'\nexport * from './itIf'\nexport * from './testIf'\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,wBAAc,yBAAd;AACA,wBAAc,mBADd;AAEA,wBAAc,qBAFd;","names":[]}
@@ -1,14 +1,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
- };
1
+ export * from "./describeIf";
2
+ export * from "./itIf";
3
+ export * from "./testIf";
14
4
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
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":[]}
1
+ {"version":3,"sources":["../../src/index.ts"],"sourcesContent":["export * from './describeIf'\nexport * from './itIf'\nexport * from './testIf'\n"],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
@@ -16,12 +16,10 @@ 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
21
19
  var itIf_exports = {};
22
20
  __export(itIf_exports, {
23
21
  itIf: () => itIf
24
22
  });
25
23
  module.exports = __toCommonJS(itIf_exports);
26
- var itIf = (expr) => expr ? it : it.skip;
24
+ const itIf = (expr) => expr ? it : it.skip;
27
25
  //# 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":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAKO,IAAM,OAAO,CAAI,SAAqB,OAAO,KAAK,GAAG;","names":[]}
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,MAAM,OAAO,CAAI,SAAqB,OAAO,KAAK,GAAG;","names":[]}
@@ -1,5 +1,4 @@
1
- // src/itIf.ts
2
- var itIf = (expr) => expr ? it : it.skip;
1
+ const itIf = (expr) => expr ? it : it.skip;
3
2
  export {
4
3
  itIf
5
4
  };
@@ -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":";AAKO,IAAM,OAAO,CAAI,SAAqB,OAAO,KAAK,GAAG;","names":[]}
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":"AAKO,MAAM,OAAO,CAAI,SAAqB,OAAO,KAAK,GAAG;","names":[]}
@@ -16,12 +16,10 @@ 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
21
19
  var testIf_exports = {};
22
20
  __export(testIf_exports, {
23
21
  testIf: () => testIf
24
22
  });
25
23
  module.exports = __toCommonJS(testIf_exports);
26
- var testIf = (expr) => expr ? test : test.skip;
24
+ const testIf = (expr) => expr ? test : test.skip;
27
25
  //# 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":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAKO,IAAM,SAAS,CAAI,SAAqB,OAAO,OAAO,KAAK;","names":[]}
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,MAAM,SAAS,CAAI,SAAqB,OAAO,OAAO,KAAK;","names":[]}
@@ -1,5 +1,4 @@
1
- // src/testIf.ts
2
- var testIf = (expr) => expr ? test : test.skip;
1
+ const testIf = (expr) => expr ? test : test.skip;
3
2
  export {
4
3
  testIf
5
4
  };
@@ -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":";AAKO,IAAM,SAAS,CAAI,SAAqB,OAAO,OAAO,KAAK;","names":[]}
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":"AAKO,MAAM,SAAS,CAAI,SAAqB,OAAO,OAAO,KAAK;","names":[]}
@@ -16,12 +16,14 @@ 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
- const describeIf = (expr) => expr ? describe : describe.skip;
26
+ var describeIf = (expr) => expr ? describe : describe.skip;
25
27
  // Annotate the CommonJS export names for ESM import in node:
26
28
  0 && (module.exports = {
27
29
  describeIf
@@ -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":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAKO,MAAM,aAAa,CAAI,SAAqB,OAAO,WAAW,SAAS;","names":[]}
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":[]}
@@ -1,4 +1,5 @@
1
- const describeIf = (expr) => expr ? describe : describe.skip;
1
+ // src/describeIf.ts
2
+ var describeIf = (expr) => expr ? describe : describe.skip;
2
3
  export {
3
4
  describeIf
4
5
  };
@@ -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":"AAKO,MAAM,aAAa,CAAI,SAAqB,OAAO,WAAW,SAAS;","names":[]}
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":";AAKO,IAAM,aAAa,CAAI,SAAqB,OAAO,WAAW,SAAS;","names":[]}
@@ -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,17 +15,29 @@ 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
- __reExport(src_exports, require("./describeIf"), module.exports);
19
- __reExport(src_exports, require("./itIf"), module.exports);
20
- __reExport(src_exports, require("./testIf"), module.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;
21
37
  // Annotate the CommonJS export names for ESM import in node:
22
38
  0 && (module.exports = {
23
- ...require("./describeIf"),
24
- ...require("./itIf"),
25
- ...require("./testIf")
39
+ describeIf,
40
+ itIf,
41
+ testIf
26
42
  });
27
43
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts"],"sourcesContent":["export * from './describeIf'\nexport * from './itIf'\nexport * from './testIf'\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,wBAAc,yBAAd;AACA,wBAAc,mBADd;AAEA,wBAAc,qBAFd;","names":[]}
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":[]}
@@ -1,4 +1,14 @@
1
- export * from "./describeIf";
2
- export * from "./itIf";
3
- export * from "./testIf";
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
+ };
4
14
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts"],"sourcesContent":["export * from './describeIf'\nexport * from './itIf'\nexport * from './testIf'\n"],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
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/node/itIf.js CHANGED
@@ -16,12 +16,14 @@ 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
- const itIf = (expr) => expr ? it : it.skip;
26
+ var itIf = (expr) => expr ? it : it.skip;
25
27
  // Annotate the CommonJS export names for ESM import in node:
26
28
  0 && (module.exports = {
27
29
  itIf
@@ -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":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAKO,MAAM,OAAO,CAAI,SAAqB,OAAO,KAAK,GAAG;","names":[]}
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":[]}
@@ -1,4 +1,5 @@
1
- const itIf = (expr) => expr ? it : it.skip;
1
+ // src/itIf.ts
2
+ var itIf = (expr) => expr ? it : it.skip;
2
3
  export {
3
4
  itIf
4
5
  };
@@ -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":"AAKO,MAAM,OAAO,CAAI,SAAqB,OAAO,KAAK,GAAG;","names":[]}
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":";AAKO,IAAM,OAAO,CAAI,SAAqB,OAAO,KAAK,GAAG;","names":[]}
@@ -16,12 +16,14 @@ 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
- const testIf = (expr) => expr ? test : test.skip;
26
+ var testIf = (expr) => expr ? test : test.skip;
25
27
  // Annotate the CommonJS export names for ESM import in node:
26
28
  0 && (module.exports = {
27
29
  testIf
@@ -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":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAKO,MAAM,SAAS,CAAI,SAAqB,OAAO,OAAO,KAAK;","names":[]}
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":[]}
@@ -1,4 +1,5 @@
1
- const testIf = (expr) => expr ? test : test.skip;
1
+ // src/testIf.ts
2
+ var testIf = (expr) => expr ? test : test.skip;
2
3
  export {
3
4
  testIf
4
5
  };
@@ -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":"AAKO,MAAM,SAAS,CAAI,SAAqB,OAAO,OAAO,KAAK;","names":[]}
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":";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.70",
43
- "@xylabs/tsconfig": "^3.0.70",
42
+ "@xylabs/ts-scripts-yarn3": "^3.0.72",
43
+ "@xylabs/tsconfig": "^3.0.72",
44
44
  "jest": "^29.7.0",
45
45
  "typescript": "^5.2.2"
46
46
  },
@@ -55,5 +55,5 @@
55
55
  "url": "https://github.com/xylabs/sdk-js.git"
56
56
  },
57
57
  "sideEffects": false,
58
- "version": "2.11.21"
58
+ "version": "2.11.23"
59
59
  }