@xylabs/jest-helpers 2.12.13 → 2.12.14

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.
@@ -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":[]}
@@ -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.js.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":[]}
@@ -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":[]}
@@ -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.78",
43
- "@xylabs/tsconfig": "^3.0.78",
42
+ "@xylabs/ts-scripts-yarn3": "^3.0.79",
43
+ "@xylabs/tsconfig": "^3.0.79",
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.13",
58
+ "version": "2.12.14",
59
59
  "type": "module"
60
60
  }