@xylabs/jest-helpers 2.12.22 → 2.12.24

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.
Files changed (65) hide show
  1. package/package.json +3 -3
  2. package/dist/browser/describeIf.cjs +0 -27
  3. package/dist/browser/describeIf.cjs.map +0 -1
  4. package/dist/browser/describeIf.js +0 -6
  5. package/dist/browser/describeIf.js.map +0 -1
  6. package/dist/browser/itIf.cjs +0 -27
  7. package/dist/browser/itIf.cjs.map +0 -1
  8. package/dist/browser/itIf.js +0 -6
  9. package/dist/browser/itIf.js.map +0 -1
  10. package/dist/browser/tags/config.cjs +0 -33
  11. package/dist/browser/tags/config.cjs.map +0 -1
  12. package/dist/browser/tags/config.js +0 -12
  13. package/dist/browser/tags/config.js.map +0 -1
  14. package/dist/browser/tags/filter.cjs +0 -72
  15. package/dist/browser/tags/filter.cjs.map +0 -1
  16. package/dist/browser/tags/filter.js +0 -49
  17. package/dist/browser/tags/filter.js.map +0 -1
  18. package/dist/browser/tags/index.cjs +0 -102
  19. package/dist/browser/tags/index.cjs.map +0 -1
  20. package/dist/browser/tags/index.js +0 -79
  21. package/dist/browser/tags/index.js.map +0 -1
  22. package/dist/browser/tags/regexps.cjs +0 -44
  23. package/dist/browser/tags/regexps.cjs.map +0 -1
  24. package/dist/browser/tags/regexps.js +0 -21
  25. package/dist/browser/tags/regexps.js.map +0 -1
  26. package/dist/browser/tags/utils.cjs +0 -36
  27. package/dist/browser/tags/utils.cjs.map +0 -1
  28. package/dist/browser/tags/utils.js +0 -13
  29. package/dist/browser/tags/utils.js.map +0 -1
  30. package/dist/browser/testIf.cjs +0 -27
  31. package/dist/browser/testIf.cjs.map +0 -1
  32. package/dist/browser/testIf.js +0 -6
  33. package/dist/browser/testIf.js.map +0 -1
  34. package/dist/node/describeIf.cjs +0 -31
  35. package/dist/node/describeIf.cjs.map +0 -1
  36. package/dist/node/describeIf.js +0 -6
  37. package/dist/node/describeIf.js.map +0 -1
  38. package/dist/node/itIf.cjs +0 -31
  39. package/dist/node/itIf.cjs.map +0 -1
  40. package/dist/node/itIf.js +0 -6
  41. package/dist/node/itIf.js.map +0 -1
  42. package/dist/node/tags/config.cjs +0 -40
  43. package/dist/node/tags/config.cjs.map +0 -1
  44. package/dist/node/tags/config.js +0 -12
  45. package/dist/node/tags/config.js.map +0 -1
  46. package/dist/node/tags/filter.cjs +0 -76
  47. package/dist/node/tags/filter.cjs.map +0 -1
  48. package/dist/node/tags/filter.js +0 -49
  49. package/dist/node/tags/filter.js.map +0 -1
  50. package/dist/node/tags/index.cjs +0 -106
  51. package/dist/node/tags/index.cjs.map +0 -1
  52. package/dist/node/tags/index.js +0 -79
  53. package/dist/node/tags/index.js.map +0 -1
  54. package/dist/node/tags/regexps.cjs +0 -53
  55. package/dist/node/tags/regexps.cjs.map +0 -1
  56. package/dist/node/tags/regexps.js +0 -21
  57. package/dist/node/tags/regexps.js.map +0 -1
  58. package/dist/node/tags/utils.cjs +0 -40
  59. package/dist/node/tags/utils.cjs.map +0 -1
  60. package/dist/node/tags/utils.js +0 -13
  61. package/dist/node/tags/utils.js.map +0 -1
  62. package/dist/node/testIf.cjs +0 -31
  63. package/dist/node/testIf.cjs.map +0 -1
  64. package/dist/node/testIf.js +0 -6
  65. package/dist/node/testIf.js.map +0 -1
@@ -1,53 +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/tags/regexps.ts
21
- var regexps_exports = {};
22
- __export(regexps_exports, {
23
- AND_REGX: () => AND_REGX,
24
- BAD_REGX: () => BAD_REGX,
25
- GOOD_REGX: () => GOOD_REGX,
26
- OR_REGX: () => OR_REGX,
27
- PLAIN_REGX: () => PLAIN_REGX,
28
- escape: () => escape
29
- });
30
- module.exports = __toCommonJS(regexps_exports);
31
-
32
- // src/tags/config.ts
33
- var NOT_SYMBOL = "!";
34
- var AND_SYMBOL = "&&";
35
- var OR_SYMBOL = "||";
36
-
37
- // src/tags/regexps.ts
38
- var escape = (str) => str.split("").map((symbol) => `\\${symbol}`).join("");
39
- var AND_REGX = new RegExp(`\\s*${escape(AND_SYMBOL)}\\s*`);
40
- var OR_REGX = new RegExp(`\\s*${escape(OR_SYMBOL)}\\s*`);
41
- var PLAIN_REGX = new RegExp("\\s+");
42
- var BAD_REGX = new RegExp(`^${escape(NOT_SYMBOL)}.*$`);
43
- var GOOD_REGX = new RegExp(`^[^${escape(NOT_SYMBOL)}].*$`);
44
- // Annotate the CommonJS export names for ESM import in node:
45
- 0 && (module.exports = {
46
- AND_REGX,
47
- BAD_REGX,
48
- GOOD_REGX,
49
- OR_REGX,
50
- PLAIN_REGX,
51
- escape
52
- });
53
- //# sourceMappingURL=regexps.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/tags/regexps.ts","../../../src/tags/config.ts"],"sourcesContent":["import { AND_SYMBOL, NOT_SYMBOL, OR_SYMBOL } from './config'\n\nexport const escape = (str: string) =>\n str\n .split('')\n .map((symbol) => `\\\\${symbol}`)\n .join('')\n\nexport const AND_REGX = new RegExp(`\\\\s*${escape(AND_SYMBOL)}\\\\s*`)\n\nexport const OR_REGX = new RegExp(`\\\\s*${escape(OR_SYMBOL)}\\\\s*`)\n\nexport const PLAIN_REGX = new RegExp('\\\\s+')\n\nexport const BAD_REGX = new RegExp(`^${escape(NOT_SYMBOL)}.*$`)\n\nexport const GOOD_REGX = new RegExp(`^[^${escape(NOT_SYMBOL)}].*$`)\n","export const NOT_SYMBOL = '!'\n\nexport const AND_SYMBOL = '&&'\n\nexport const OR_SYMBOL = '||'\n\nexport const RESERVED_COMMANDS = ['--tags']\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAO,IAAM,aAAa;AAEnB,IAAM,aAAa;AAEnB,IAAM,YAAY;;;ADFlB,IAAM,SAAS,CAAC,QACrB,IACG,MAAM,EAAE,EACR,IAAI,CAAC,WAAW,KAAK,MAAM,EAAE,EAC7B,KAAK,EAAE;AAEL,IAAM,WAAW,IAAI,OAAO,OAAO,OAAO,UAAU,CAAC,MAAM;AAE3D,IAAM,UAAU,IAAI,OAAO,OAAO,OAAO,SAAS,CAAC,MAAM;AAEzD,IAAM,aAAa,IAAI,OAAO,MAAM;AAEpC,IAAM,WAAW,IAAI,OAAO,IAAI,OAAO,UAAU,CAAC,KAAK;AAEvD,IAAM,YAAY,IAAI,OAAO,MAAM,OAAO,UAAU,CAAC,MAAM;","names":[]}
@@ -1,21 +0,0 @@
1
- // src/tags/config.ts
2
- var NOT_SYMBOL = "!";
3
- var AND_SYMBOL = "&&";
4
- var OR_SYMBOL = "||";
5
-
6
- // src/tags/regexps.ts
7
- var escape = (str) => str.split("").map((symbol) => `\\${symbol}`).join("");
8
- var AND_REGX = new RegExp(`\\s*${escape(AND_SYMBOL)}\\s*`);
9
- var OR_REGX = new RegExp(`\\s*${escape(OR_SYMBOL)}\\s*`);
10
- var PLAIN_REGX = new RegExp("\\s+");
11
- var BAD_REGX = new RegExp(`^${escape(NOT_SYMBOL)}.*$`);
12
- var GOOD_REGX = new RegExp(`^[^${escape(NOT_SYMBOL)}].*$`);
13
- export {
14
- AND_REGX,
15
- BAD_REGX,
16
- GOOD_REGX,
17
- OR_REGX,
18
- PLAIN_REGX,
19
- escape
20
- };
21
- //# sourceMappingURL=regexps.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/tags/config.ts","../../../src/tags/regexps.ts"],"sourcesContent":["export const NOT_SYMBOL = '!'\n\nexport const AND_SYMBOL = '&&'\n\nexport const OR_SYMBOL = '||'\n\nexport const RESERVED_COMMANDS = ['--tags']\n","import { AND_SYMBOL, NOT_SYMBOL, OR_SYMBOL } from './config'\n\nexport const escape = (str: string) =>\n str\n .split('')\n .map((symbol) => `\\\\${symbol}`)\n .join('')\n\nexport const AND_REGX = new RegExp(`\\\\s*${escape(AND_SYMBOL)}\\\\s*`)\n\nexport const OR_REGX = new RegExp(`\\\\s*${escape(OR_SYMBOL)}\\\\s*`)\n\nexport const PLAIN_REGX = new RegExp('\\\\s+')\n\nexport const BAD_REGX = new RegExp(`^${escape(NOT_SYMBOL)}.*$`)\n\nexport const GOOD_REGX = new RegExp(`^[^${escape(NOT_SYMBOL)}].*$`)\n"],"mappings":";AAAO,IAAM,aAAa;AAEnB,IAAM,aAAa;AAEnB,IAAM,YAAY;;;ACFlB,IAAM,SAAS,CAAC,QACrB,IACG,MAAM,EAAE,EACR,IAAI,CAAC,WAAW,KAAK,MAAM,EAAE,EAC7B,KAAK,EAAE;AAEL,IAAM,WAAW,IAAI,OAAO,OAAO,OAAO,UAAU,CAAC,MAAM;AAE3D,IAAM,UAAU,IAAI,OAAO,OAAO,OAAO,SAAS,CAAC,MAAM;AAEzD,IAAM,aAAa,IAAI,OAAO,MAAM;AAEpC,IAAM,WAAW,IAAI,OAAO,IAAI,OAAO,UAAU,CAAC,KAAK;AAEvD,IAAM,YAAY,IAAI,OAAO,MAAM,OAAO,UAAU,CAAC,MAAM;","names":[]}
@@ -1,40 +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/tags/utils.ts
21
- var utils_exports = {};
22
- __export(utils_exports, {
23
- getJestPassedParams: () => getJestPassedParams
24
- });
25
- module.exports = __toCommonJS(utils_exports);
26
-
27
- // src/tags/config.ts
28
- var RESERVED_COMMANDS = ["--tags"];
29
-
30
- // src/tags/utils.ts
31
- var getJestPassedParams = (argv) => {
32
- return [...argv, "-i"].filter((prop) => {
33
- return prop.startsWith("-") && RESERVED_COMMANDS.every((command) => command !== prop);
34
- });
35
- };
36
- // Annotate the CommonJS export names for ESM import in node:
37
- 0 && (module.exports = {
38
- getJestPassedParams
39
- });
40
- //# sourceMappingURL=utils.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/tags/utils.ts","../../../src/tags/config.ts"],"sourcesContent":["import { RESERVED_COMMANDS } from './config'\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport const getJestPassedParams = (argv: any) => {\n return [...argv, '-i'].filter((prop) => {\n return prop.startsWith('-') && RESERVED_COMMANDS.every((command) => command !== prop)\n })\n}\n","export const NOT_SYMBOL = '!'\n\nexport const AND_SYMBOL = '&&'\n\nexport const OR_SYMBOL = '||'\n\nexport const RESERVED_COMMANDS = ['--tags']\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACMO,IAAM,oBAAoB,CAAC,QAAQ;;;ADHnC,IAAM,sBAAsB,CAAC,SAAc;AAChD,SAAO,CAAC,GAAG,MAAM,IAAI,EAAE,OAAO,CAAC,SAAS;AACtC,WAAO,KAAK,WAAW,GAAG,KAAK,kBAAkB,MAAM,CAAC,YAAY,YAAY,IAAI;AAAA,EACtF,CAAC;AACH;","names":[]}
@@ -1,13 +0,0 @@
1
- // src/tags/config.ts
2
- var RESERVED_COMMANDS = ["--tags"];
3
-
4
- // src/tags/utils.ts
5
- var getJestPassedParams = (argv) => {
6
- return [...argv, "-i"].filter((prop) => {
7
- return prop.startsWith("-") && RESERVED_COMMANDS.every((command) => command !== prop);
8
- });
9
- };
10
- export {
11
- getJestPassedParams
12
- };
13
- //# sourceMappingURL=utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/tags/config.ts","../../../src/tags/utils.ts"],"sourcesContent":["export const NOT_SYMBOL = '!'\n\nexport const AND_SYMBOL = '&&'\n\nexport const OR_SYMBOL = '||'\n\nexport const RESERVED_COMMANDS = ['--tags']\n","import { RESERVED_COMMANDS } from './config'\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport const getJestPassedParams = (argv: any) => {\n return [...argv, '-i'].filter((prop) => {\n return prop.startsWith('-') && RESERVED_COMMANDS.every((command) => command !== prop)\n })\n}\n"],"mappings":";AAMO,IAAM,oBAAoB,CAAC,QAAQ;;;ACHnC,IAAM,sBAAsB,CAAC,SAAc;AAChD,SAAO,CAAC,GAAG,MAAM,IAAI,EAAE,OAAO,CAAC,SAAS;AACtC,WAAO,KAAK,WAAW,GAAG,KAAK,kBAAkB,MAAM,CAAC,YAAY,YAAY,IAAI;AAAA,EACtF,CAAC;AACH;","names":[]}
@@ -1,31 +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/testIf.ts
21
- var testIf_exports = {};
22
- __export(testIf_exports, {
23
- testIf: () => testIf
24
- });
25
- module.exports = __toCommonJS(testIf_exports);
26
- var testIf = (expr) => expr ? test : test.skip;
27
- // Annotate the CommonJS export names for ESM import in node:
28
- 0 && (module.exports = {
29
- testIf
30
- });
31
- //# sourceMappingURL=testIf.cjs.map
@@ -1 +0,0 @@
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,6 +0,0 @@
1
- // src/testIf.ts
2
- var testIf = (expr) => expr ? test : test.skip;
3
- export {
4
- testIf
5
- };
6
- //# sourceMappingURL=testIf.js.map
@@ -1 +0,0 @@
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":[]}