@xylabs/jest-helpers 3.6.11 → 4.0.0

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 (174) hide show
  1. package/dist/neutral/index.d.ts +9 -5
  2. package/package.json +5 -12
  3. package/xy.config.ts +12 -0
  4. package/dist/browser/describeIf.d.cts +0 -2
  5. package/dist/browser/describeIf.d.cts.map +0 -1
  6. package/dist/browser/describeIf.d.mts +0 -2
  7. package/dist/browser/describeIf.d.mts.map +0 -1
  8. package/dist/browser/describeIf.d.ts +0 -2
  9. package/dist/browser/describeIf.d.ts.map +0 -1
  10. package/dist/browser/index.cjs +0 -105
  11. package/dist/browser/index.cjs.map +0 -1
  12. package/dist/browser/index.d.cts +0 -5
  13. package/dist/browser/index.d.cts.map +0 -1
  14. package/dist/browser/index.d.mts +0 -5
  15. package/dist/browser/index.d.mts.map +0 -1
  16. package/dist/browser/index.d.ts +0 -5
  17. package/dist/browser/index.d.ts.map +0 -1
  18. package/dist/browser/index.mjs +0 -82
  19. package/dist/browser/index.mjs.map +0 -1
  20. package/dist/browser/itIf.d.cts +0 -2
  21. package/dist/browser/itIf.d.cts.map +0 -1
  22. package/dist/browser/itIf.d.mts +0 -2
  23. package/dist/browser/itIf.d.mts.map +0 -1
  24. package/dist/browser/itIf.d.ts +0 -2
  25. package/dist/browser/itIf.d.ts.map +0 -1
  26. package/dist/browser/tags/config.d.cts +0 -5
  27. package/dist/browser/tags/config.d.cts.map +0 -1
  28. package/dist/browser/tags/config.d.mts +0 -5
  29. package/dist/browser/tags/config.d.mts.map +0 -1
  30. package/dist/browser/tags/config.d.ts +0 -5
  31. package/dist/browser/tags/config.d.ts.map +0 -1
  32. package/dist/browser/tags/filter.d.cts +0 -2
  33. package/dist/browser/tags/filter.d.cts.map +0 -1
  34. package/dist/browser/tags/filter.d.mts +0 -2
  35. package/dist/browser/tags/filter.d.mts.map +0 -1
  36. package/dist/browser/tags/filter.d.ts +0 -2
  37. package/dist/browser/tags/filter.d.ts.map +0 -1
  38. package/dist/browser/tags/index.d.cts +0 -2
  39. package/dist/browser/tags/index.d.cts.map +0 -1
  40. package/dist/browser/tags/index.d.mts +0 -2
  41. package/dist/browser/tags/index.d.mts.map +0 -1
  42. package/dist/browser/tags/index.d.ts +0 -2
  43. package/dist/browser/tags/index.d.ts.map +0 -1
  44. package/dist/browser/tags/regexps.d.cts +0 -7
  45. package/dist/browser/tags/regexps.d.cts.map +0 -1
  46. package/dist/browser/tags/regexps.d.mts +0 -7
  47. package/dist/browser/tags/regexps.d.mts.map +0 -1
  48. package/dist/browser/tags/regexps.d.ts +0 -7
  49. package/dist/browser/tags/regexps.d.ts.map +0 -1
  50. package/dist/browser/tags/utils.d.cts +0 -2
  51. package/dist/browser/tags/utils.d.cts.map +0 -1
  52. package/dist/browser/tags/utils.d.mts +0 -2
  53. package/dist/browser/tags/utils.d.mts.map +0 -1
  54. package/dist/browser/tags/utils.d.ts +0 -2
  55. package/dist/browser/tags/utils.d.ts.map +0 -1
  56. package/dist/browser/testIf.d.cts +0 -2
  57. package/dist/browser/testIf.d.cts.map +0 -1
  58. package/dist/browser/testIf.d.mts +0 -2
  59. package/dist/browser/testIf.d.mts.map +0 -1
  60. package/dist/browser/testIf.d.ts +0 -2
  61. package/dist/browser/testIf.d.ts.map +0 -1
  62. package/dist/neutral/describeIf.d.cts +0 -2
  63. package/dist/neutral/describeIf.d.cts.map +0 -1
  64. package/dist/neutral/describeIf.d.mts +0 -2
  65. package/dist/neutral/describeIf.d.mts.map +0 -1
  66. package/dist/neutral/describeIf.d.ts +0 -2
  67. package/dist/neutral/describeIf.d.ts.map +0 -1
  68. package/dist/neutral/index.cjs +0 -105
  69. package/dist/neutral/index.cjs.map +0 -1
  70. package/dist/neutral/index.d.cts +0 -5
  71. package/dist/neutral/index.d.cts.map +0 -1
  72. package/dist/neutral/index.d.mts +0 -5
  73. package/dist/neutral/index.d.mts.map +0 -1
  74. package/dist/neutral/index.d.ts.map +0 -1
  75. package/dist/neutral/itIf.d.cts +0 -2
  76. package/dist/neutral/itIf.d.cts.map +0 -1
  77. package/dist/neutral/itIf.d.mts +0 -2
  78. package/dist/neutral/itIf.d.mts.map +0 -1
  79. package/dist/neutral/itIf.d.ts +0 -2
  80. package/dist/neutral/itIf.d.ts.map +0 -1
  81. package/dist/neutral/tags/config.d.cts +0 -5
  82. package/dist/neutral/tags/config.d.cts.map +0 -1
  83. package/dist/neutral/tags/config.d.mts +0 -5
  84. package/dist/neutral/tags/config.d.mts.map +0 -1
  85. package/dist/neutral/tags/config.d.ts +0 -5
  86. package/dist/neutral/tags/config.d.ts.map +0 -1
  87. package/dist/neutral/tags/filter.d.cts +0 -2
  88. package/dist/neutral/tags/filter.d.cts.map +0 -1
  89. package/dist/neutral/tags/filter.d.mts +0 -2
  90. package/dist/neutral/tags/filter.d.mts.map +0 -1
  91. package/dist/neutral/tags/filter.d.ts +0 -2
  92. package/dist/neutral/tags/filter.d.ts.map +0 -1
  93. package/dist/neutral/tags/index.d.cts +0 -2
  94. package/dist/neutral/tags/index.d.cts.map +0 -1
  95. package/dist/neutral/tags/index.d.mts +0 -2
  96. package/dist/neutral/tags/index.d.mts.map +0 -1
  97. package/dist/neutral/tags/index.d.ts +0 -2
  98. package/dist/neutral/tags/index.d.ts.map +0 -1
  99. package/dist/neutral/tags/regexps.d.cts +0 -7
  100. package/dist/neutral/tags/regexps.d.cts.map +0 -1
  101. package/dist/neutral/tags/regexps.d.mts +0 -7
  102. package/dist/neutral/tags/regexps.d.mts.map +0 -1
  103. package/dist/neutral/tags/regexps.d.ts +0 -7
  104. package/dist/neutral/tags/regexps.d.ts.map +0 -1
  105. package/dist/neutral/tags/utils.d.cts +0 -2
  106. package/dist/neutral/tags/utils.d.cts.map +0 -1
  107. package/dist/neutral/tags/utils.d.mts +0 -2
  108. package/dist/neutral/tags/utils.d.mts.map +0 -1
  109. package/dist/neutral/tags/utils.d.ts +0 -2
  110. package/dist/neutral/tags/utils.d.ts.map +0 -1
  111. package/dist/neutral/testIf.d.cts +0 -2
  112. package/dist/neutral/testIf.d.cts.map +0 -1
  113. package/dist/neutral/testIf.d.mts +0 -2
  114. package/dist/neutral/testIf.d.mts.map +0 -1
  115. package/dist/neutral/testIf.d.ts +0 -2
  116. package/dist/neutral/testIf.d.ts.map +0 -1
  117. package/dist/node/describeIf.d.cts +0 -2
  118. package/dist/node/describeIf.d.cts.map +0 -1
  119. package/dist/node/describeIf.d.mts +0 -2
  120. package/dist/node/describeIf.d.mts.map +0 -1
  121. package/dist/node/describeIf.d.ts +0 -2
  122. package/dist/node/describeIf.d.ts.map +0 -1
  123. package/dist/node/index.cjs +0 -112
  124. package/dist/node/index.cjs.map +0 -1
  125. package/dist/node/index.d.cts +0 -5
  126. package/dist/node/index.d.cts.map +0 -1
  127. package/dist/node/index.d.mts +0 -5
  128. package/dist/node/index.d.mts.map +0 -1
  129. package/dist/node/index.d.ts +0 -5
  130. package/dist/node/index.d.ts.map +0 -1
  131. package/dist/node/index.mjs +0 -82
  132. package/dist/node/index.mjs.map +0 -1
  133. package/dist/node/itIf.d.cts +0 -2
  134. package/dist/node/itIf.d.cts.map +0 -1
  135. package/dist/node/itIf.d.mts +0 -2
  136. package/dist/node/itIf.d.mts.map +0 -1
  137. package/dist/node/itIf.d.ts +0 -2
  138. package/dist/node/itIf.d.ts.map +0 -1
  139. package/dist/node/tags/config.d.cts +0 -5
  140. package/dist/node/tags/config.d.cts.map +0 -1
  141. package/dist/node/tags/config.d.mts +0 -5
  142. package/dist/node/tags/config.d.mts.map +0 -1
  143. package/dist/node/tags/config.d.ts +0 -5
  144. package/dist/node/tags/config.d.ts.map +0 -1
  145. package/dist/node/tags/filter.d.cts +0 -2
  146. package/dist/node/tags/filter.d.cts.map +0 -1
  147. package/dist/node/tags/filter.d.mts +0 -2
  148. package/dist/node/tags/filter.d.mts.map +0 -1
  149. package/dist/node/tags/filter.d.ts +0 -2
  150. package/dist/node/tags/filter.d.ts.map +0 -1
  151. package/dist/node/tags/index.d.cts +0 -2
  152. package/dist/node/tags/index.d.cts.map +0 -1
  153. package/dist/node/tags/index.d.mts +0 -2
  154. package/dist/node/tags/index.d.mts.map +0 -1
  155. package/dist/node/tags/index.d.ts +0 -2
  156. package/dist/node/tags/index.d.ts.map +0 -1
  157. package/dist/node/tags/regexps.d.cts +0 -7
  158. package/dist/node/tags/regexps.d.cts.map +0 -1
  159. package/dist/node/tags/regexps.d.mts +0 -7
  160. package/dist/node/tags/regexps.d.mts.map +0 -1
  161. package/dist/node/tags/regexps.d.ts +0 -7
  162. package/dist/node/tags/regexps.d.ts.map +0 -1
  163. package/dist/node/tags/utils.d.cts +0 -2
  164. package/dist/node/tags/utils.d.cts.map +0 -1
  165. package/dist/node/tags/utils.d.mts +0 -2
  166. package/dist/node/tags/utils.d.mts.map +0 -1
  167. package/dist/node/tags/utils.d.ts +0 -2
  168. package/dist/node/tags/utils.d.ts.map +0 -1
  169. package/dist/node/testIf.d.cts +0 -2
  170. package/dist/node/testIf.d.cts.map +0 -1
  171. package/dist/node/testIf.d.mts +0 -2
  172. package/dist/node/testIf.d.mts.map +0 -1
  173. package/dist/node/testIf.d.ts +0 -2
  174. package/dist/node/testIf.d.ts.map +0 -1
@@ -1,5 +1,9 @@
1
- export * from './describeIf.ts';
2
- export * from './itIf.ts';
3
- export * from './tags/index.ts';
4
- export * from './testIf.ts';
5
- //# sourceMappingURL=index.d.ts.map
1
+ declare const describeIf: <T>(expr?: T | null) => jest.Describe;
2
+
3
+ declare const itIf: <T>(expr?: T | null) => jest.It;
4
+
5
+ declare function tags(...tagLabels: string[]): Record<string, any>;
6
+
7
+ declare const testIf: <T>(expr?: T | null) => jest.It;
8
+
9
+ export { describeIf, itIf, tags, testIf };
package/package.json CHANGED
@@ -13,18 +13,11 @@
13
13
  "description": "Base functionality used throughout XY Labs TypeScript/JavaScript libraries",
14
14
  "exports": {
15
15
  ".": {
16
- "require": {
17
- "types": "./dist/neutral/index.d.cts",
18
- "default": "./dist/neutral/index.cjs"
19
- },
20
- "import": {
21
- "types": "./dist/neutral/index.d.ts",
22
- "default": "./dist/neutral/index.mjs"
23
- }
16
+ "types": "./dist/neutral/index.d.ts",
17
+ "default": "./dist/neutral/index.mjs"
24
18
  },
25
19
  "./package.json": "./package.json"
26
20
  },
27
- "main": "./dist/neutral/index.cjs",
28
21
  "types": "./dist/neutral/index.d.ts",
29
22
  "module": "./dist/neutral/index.mjs",
30
23
  "homepage": "https://xylabs.com",
@@ -36,8 +29,8 @@
36
29
  "esm"
37
30
  ],
38
31
  "devDependencies": {
39
- "@xylabs/ts-scripts-yarn3": "^3.15.14",
40
- "@xylabs/tsconfig": "^3.15.14",
32
+ "@xylabs/ts-scripts-yarn3": "^4.0.0-rc.15",
33
+ "@xylabs/tsconfig": "^4.0.0-rc.15",
41
34
  "jest": "^29.7.0",
42
35
  "typescript": "^5.5.4"
43
36
  },
@@ -55,6 +48,6 @@
55
48
  "url": "https://github.com/xylabs/sdk-js.git"
56
49
  },
57
50
  "sideEffects": false,
58
- "version": "3.6.11",
51
+ "version": "4.0.0",
59
52
  "type": "module"
60
53
  }
package/xy.config.ts ADDED
@@ -0,0 +1,12 @@
1
+ import { XyTsupConfig } from '@xylabs/ts-scripts-yarn3'
2
+ const config: XyTsupConfig = {
3
+ compile: {
4
+ browser: {},
5
+ neutral: {
6
+ src: true,
7
+ },
8
+ node: {},
9
+ },
10
+ }
11
+
12
+ export default config
@@ -1,2 +0,0 @@
1
- export declare const describeIf: <T>(expr?: T | null) => jest.Describe;
2
- //# sourceMappingURL=describeIf.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"describeIf.d.ts","sourceRoot":"","sources":["../../src/describeIf.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,UAAU,GAAI,CAAC,SAAS,CAAC,GAAG,IAAI,kBAAsC,CAAA"}
@@ -1,2 +0,0 @@
1
- export declare const describeIf: <T>(expr?: T | null) => jest.Describe;
2
- //# sourceMappingURL=describeIf.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"describeIf.d.ts","sourceRoot":"","sources":["../../src/describeIf.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,UAAU,GAAI,CAAC,SAAS,CAAC,GAAG,IAAI,kBAAsC,CAAA"}
@@ -1,2 +0,0 @@
1
- export declare const describeIf: <T>(expr?: T | null) => jest.Describe;
2
- //# sourceMappingURL=describeIf.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"describeIf.d.ts","sourceRoot":"","sources":["../../src/describeIf.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,UAAU,GAAI,CAAC,SAAS,CAAC,GAAG,IAAI,kBAAsC,CAAA"}
@@ -1,105 +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
- tags: () => tags,
26
- testIf: () => testIf
27
- });
28
- module.exports = __toCommonJS(src_exports);
29
-
30
- // src/describeIf.ts
31
- var describeIf = (expr) => expr ? describe : describe.skip;
32
-
33
- // src/itIf.ts
34
- var itIf = (expr) => expr ? it : it.skip;
35
-
36
- // src/testIf.ts
37
- var testIf = (expr) => expr ? test : test.skip;
38
-
39
- // src/tags/config.ts
40
- var NOT_SYMBOL = "!";
41
- var AND_SYMBOL = "&&";
42
- var OR_SYMBOL = "||";
43
-
44
- // src/tags/regexps.ts
45
- var escape = (str) => [...str].map((symbol) => `\\${symbol}`).join("");
46
- var AND_REGX = new RegExp(`\\s*${escape(AND_SYMBOL)}\\s*`);
47
- var OR_REGX = new RegExp(`\\s*${escape(OR_SYMBOL)}\\s*`);
48
- var PLAIN_REGX = new RegExp(String.raw`\s+`);
49
- var BAD_REGX = new RegExp(`^${escape(NOT_SYMBOL)}.*$`);
50
- var GOOD_REGX = new RegExp(`^[^${escape(NOT_SYMBOL)}].*$`);
51
-
52
- // src/tags/filter.ts
53
- var matchFilter = (strParam = "") => (tags2) => {
54
- const str = strParam.trim();
55
- if (typeof tags2 === "string") {
56
- tags2 = [tags2];
57
- }
58
- if (str.includes(OR_SYMBOL)) {
59
- const include2 = goodTags(str.split(OR_REGX));
60
- const exclude2 = badTags(str.split(OR_REGX));
61
- if (exclude2.length === 0) {
62
- return include2.length === 0 || include2.some((s) => tags2.includes(s));
63
- }
64
- if (include2.length === 0 && exclude2.length > 0) {
65
- return exclude2.some((s) => !tags2.includes(s));
66
- }
67
- return include2.length === 0 || include2.some((s) => tags2.includes(s)) || exclude2.some((s) => !tags2.includes(s));
68
- }
69
- if (str.includes(AND_SYMBOL)) {
70
- const include2 = goodTags(str.split(AND_REGX));
71
- const exclude2 = badTags(str.split(AND_REGX));
72
- return include2.every((s) => tags2.includes(s)) && !exclude2.some((s) => tags2.includes(s));
73
- }
74
- const include = goodTags(str.split(PLAIN_REGX));
75
- const exclude = badTags(str.split(PLAIN_REGX));
76
- return (include.length === 0 || include.some((s) => tags2.includes(s))) && !exclude.some((s) => tags2.includes(s));
77
- };
78
- var goodTags = (arr) => {
79
- return arr.filter((s) => s.match(GOOD_REGX));
80
- };
81
- var badTags = (arr) => {
82
- return arr.filter((s) => s.match(BAD_REGX)).map((s) => s.replace(NOT_SYMBOL, ""));
83
- };
84
-
85
- // src/tags/index.ts
86
- function tags(...tagLabels) {
87
- const tagsParam = process.argv.indexOf("--tags");
88
- const passedTags = tagsParam > 0 ? process.argv[tagsParam + 1] : void 0;
89
- const filter = matchFilter(passedTags);
90
- const thisGlobal = global;
91
- const chain = {};
92
- const filterMatch = filter(tagLabels);
93
- chain.describeIf = filterMatch ? describeIf : (_param) => describe.skip;
94
- chain.itIf = filterMatch ? itIf : (_param) => it.skip;
95
- chain.testIf = filterMatch ? testIf : (_param) => test.skip;
96
- chain.describe = filterMatch ? thisGlobal.describe : thisGlobal.xdescribe;
97
- chain.it = filterMatch ? thisGlobal.it : thisGlobal.xit;
98
- chain.test = filterMatch ? thisGlobal.test : thisGlobal.xtest;
99
- chain.test.only = thisGlobal.test.only;
100
- chain.test.skip = thisGlobal.test.skip;
101
- chain.xtest = thisGlobal.xtest;
102
- chain.xit = thisGlobal.xit;
103
- return chain;
104
- }
105
- //# sourceMappingURL=index.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/index.ts","../../src/describeIf.ts","../../src/itIf.ts","../../src/testIf.ts","../../src/tags/config.ts","../../src/tags/regexps.ts","../../src/tags/filter.ts","../../src/tags/index.ts"],"sourcesContent":["export * from './describeIf.ts'\nexport * from './itIf.ts'\nexport * from './tags/index.ts'\nexport * from './testIf.ts'\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","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.ts'\n\nexport const escape = (str: string) => [...str].map(symbol => `\\\\${symbol}`).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(String.raw`\\s+`)\n\nexport const BAD_REGX = new RegExp(`^${escape(NOT_SYMBOL)}.*$`)\n\nexport const GOOD_REGX = new RegExp(`^[^${escape(NOT_SYMBOL)}].*$`)\n","import { AND_SYMBOL, NOT_SYMBOL, OR_SYMBOL } from './config.ts'\nimport { AND_REGX, BAD_REGX, GOOD_REGX, OR_REGX, PLAIN_REGX } from './regexps.ts'\n\n// f.e. tag1 !tag2\n// tag1 && tag2 && !tag3\n// tag1 || tag2 || !tag3\n\n// ATTENTION!!: cases with () not handled: f.e. (tag1 && tag2) || tag3 won`t work\n\nexport const matchFilter\n = (strParam = '') =>\n (tags: string[]) => {\n const str = strParam.trim()\n if (typeof tags === 'string') {\n tags = [tags]\n }\n if (str.includes(OR_SYMBOL)) {\n const include = goodTags(str.split(OR_REGX))\n const exclude = badTags(str.split(OR_REGX))\n if (exclude.length === 0) {\n return include.length === 0 || include.some(s => tags.includes(s))\n }\n if (include.length === 0 && exclude.length > 0) {\n return exclude.some(s => !tags.includes(s))\n }\n return include.length === 0 || include.some(s => tags.includes(s)) || exclude.some(s => !tags.includes(s))\n }\n if (str.includes(AND_SYMBOL)) {\n const include = goodTags(str.split(AND_REGX))\n const exclude = badTags(str.split(AND_REGX))\n\n return include.every(s => tags.includes(s)) && !exclude.some(s => tags.includes(s))\n }\n const include = goodTags(str.split(PLAIN_REGX))\n const exclude = badTags(str.split(PLAIN_REGX))\n\n return (include.length === 0 || include.some(s => tags.includes(s))) && !exclude.some(s => tags.includes(s))\n }\n\nconst goodTags = (arr: string[]) => {\n return arr.filter(s => s.match(GOOD_REGX))\n}\n\nconst badTags = (arr: string[]) => {\n return arr.filter(s => s.match(BAD_REGX)).map(s => s.replace(NOT_SYMBOL, ''))\n}\n","import { describeIf } from '../describeIf.ts'\nimport { itIf } from '../itIf.ts'\nimport { testIf } from '../testIf.ts'\nimport { matchFilter } from './filter.ts'\n\n// Based on https://www.npmjs.com/package/jest-tags/v/1.0.1\n\nexport function tags(...tagLabels: string[]) {\n const tagsParam = process.argv.indexOf('--tags')\n const passedTags = tagsParam > 0 ? process.argv[tagsParam + 1] : undefined\n const filter = matchFilter(passedTags)\n const thisGlobal = global\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const chain: Record<string, any> = {}\n\n const filterMatch = filter(tagLabels)\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n chain.describeIf = filterMatch ? describeIf : (_param: any) => describe.skip\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n chain.itIf = filterMatch ? itIf : (_param: any) => it.skip\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n chain.testIf = filterMatch ? testIf : (_param: any) => test.skip\n chain.describe = filterMatch ? thisGlobal.describe : thisGlobal.xdescribe\n chain.it = filterMatch ? thisGlobal.it : thisGlobal.xit\n chain.test = filterMatch ? thisGlobal.test : thisGlobal.xtest\n chain.test.only = thisGlobal.test.only\n chain.test.skip = thisGlobal.test.skip\n chain.xtest = thisGlobal.xtest\n chain.xit = thisGlobal.xit\n\n return chain\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;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;;;ACL3D,IAAM,aAAa;AAEnB,IAAM,aAAa;AAEnB,IAAM,YAAY;;;ACFlB,IAAM,SAAS,CAAC,Q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AACT;","names":["tags","include","exclude"]}
@@ -1,5 +0,0 @@
1
- export * from './describeIf.ts';
2
- export * from './itIf.ts';
3
- export * from './tags/index.ts';
4
- export * from './testIf.ts';
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,WAAW,CAAA;AACzB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,aAAa,CAAA"}
@@ -1,5 +0,0 @@
1
- export * from './describeIf.ts';
2
- export * from './itIf.ts';
3
- export * from './tags/index.ts';
4
- export * from './testIf.ts';
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,WAAW,CAAA;AACzB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,aAAa,CAAA"}
@@ -1,5 +0,0 @@
1
- export * from './describeIf.ts';
2
- export * from './itIf.ts';
3
- export * from './tags/index.ts';
4
- export * from './testIf.ts';
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,WAAW,CAAA;AACzB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,aAAa,CAAA"}
@@ -1,82 +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
-
10
- // src/tags/config.ts
11
- var NOT_SYMBOL = "!";
12
- var AND_SYMBOL = "&&";
13
- var OR_SYMBOL = "||";
14
-
15
- // src/tags/regexps.ts
16
- var escape = (str) => [...str].map((symbol) => `\\${symbol}`).join("");
17
- var AND_REGX = new RegExp(`\\s*${escape(AND_SYMBOL)}\\s*`);
18
- var OR_REGX = new RegExp(`\\s*${escape(OR_SYMBOL)}\\s*`);
19
- var PLAIN_REGX = new RegExp(String.raw`\s+`);
20
- var BAD_REGX = new RegExp(`^${escape(NOT_SYMBOL)}.*$`);
21
- var GOOD_REGX = new RegExp(`^[^${escape(NOT_SYMBOL)}].*$`);
22
-
23
- // src/tags/filter.ts
24
- var matchFilter = (strParam = "") => (tags2) => {
25
- const str = strParam.trim();
26
- if (typeof tags2 === "string") {
27
- tags2 = [tags2];
28
- }
29
- if (str.includes(OR_SYMBOL)) {
30
- const include2 = goodTags(str.split(OR_REGX));
31
- const exclude2 = badTags(str.split(OR_REGX));
32
- if (exclude2.length === 0) {
33
- return include2.length === 0 || include2.some((s) => tags2.includes(s));
34
- }
35
- if (include2.length === 0 && exclude2.length > 0) {
36
- return exclude2.some((s) => !tags2.includes(s));
37
- }
38
- return include2.length === 0 || include2.some((s) => tags2.includes(s)) || exclude2.some((s) => !tags2.includes(s));
39
- }
40
- if (str.includes(AND_SYMBOL)) {
41
- const include2 = goodTags(str.split(AND_REGX));
42
- const exclude2 = badTags(str.split(AND_REGX));
43
- return include2.every((s) => tags2.includes(s)) && !exclude2.some((s) => tags2.includes(s));
44
- }
45
- const include = goodTags(str.split(PLAIN_REGX));
46
- const exclude = badTags(str.split(PLAIN_REGX));
47
- return (include.length === 0 || include.some((s) => tags2.includes(s))) && !exclude.some((s) => tags2.includes(s));
48
- };
49
- var goodTags = (arr) => {
50
- return arr.filter((s) => s.match(GOOD_REGX));
51
- };
52
- var badTags = (arr) => {
53
- return arr.filter((s) => s.match(BAD_REGX)).map((s) => s.replace(NOT_SYMBOL, ""));
54
- };
55
-
56
- // src/tags/index.ts
57
- function tags(...tagLabels) {
58
- const tagsParam = process.argv.indexOf("--tags");
59
- const passedTags = tagsParam > 0 ? process.argv[tagsParam + 1] : void 0;
60
- const filter = matchFilter(passedTags);
61
- const thisGlobal = global;
62
- const chain = {};
63
- const filterMatch = filter(tagLabels);
64
- chain.describeIf = filterMatch ? describeIf : (_param) => describe.skip;
65
- chain.itIf = filterMatch ? itIf : (_param) => it.skip;
66
- chain.testIf = filterMatch ? testIf : (_param) => test.skip;
67
- chain.describe = filterMatch ? thisGlobal.describe : thisGlobal.xdescribe;
68
- chain.it = filterMatch ? thisGlobal.it : thisGlobal.xit;
69
- chain.test = filterMatch ? thisGlobal.test : thisGlobal.xtest;
70
- chain.test.only = thisGlobal.test.only;
71
- chain.test.skip = thisGlobal.test.skip;
72
- chain.xtest = thisGlobal.xtest;
73
- chain.xit = thisGlobal.xit;
74
- return chain;
75
- }
76
- export {
77
- describeIf,
78
- itIf,
79
- tags,
80
- testIf
81
- };
82
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/describeIf.ts","../../src/itIf.ts","../../src/testIf.ts","../../src/tags/config.ts","../../src/tags/regexps.ts","../../src/tags/filter.ts","../../src/tags/index.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","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.ts'\n\nexport const escape = (str: string) => [...str].map(symbol => `\\\\${symbol}`).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(String.raw`\\s+`)\n\nexport const BAD_REGX = new RegExp(`^${escape(NOT_SYMBOL)}.*$`)\n\nexport const GOOD_REGX = new RegExp(`^[^${escape(NOT_SYMBOL)}].*$`)\n","import { AND_SYMBOL, NOT_SYMBOL, OR_SYMBOL } from './config.ts'\nimport { AND_REGX, BAD_REGX, GOOD_REGX, OR_REGX, PLAIN_REGX } from './regexps.ts'\n\n// f.e. tag1 !tag2\n// tag1 && tag2 && !tag3\n// tag1 || tag2 || !tag3\n\n// ATTENTION!!: cases with () not handled: f.e. (tag1 && tag2) || tag3 won`t work\n\nexport const matchFilter\n = (strParam = '') =>\n (tags: string[]) => {\n const str = strParam.trim()\n if (typeof tags === 'string') {\n tags = [tags]\n }\n if (str.includes(OR_SYMBOL)) {\n const include = goodTags(str.split(OR_REGX))\n const exclude = badTags(str.split(OR_REGX))\n if (exclude.length === 0) {\n return include.length === 0 || include.some(s => tags.includes(s))\n }\n if (include.length === 0 && exclude.length > 0) {\n return exclude.some(s => !tags.includes(s))\n }\n return include.length === 0 || include.some(s => tags.includes(s)) || exclude.some(s => !tags.includes(s))\n }\n if (str.includes(AND_SYMBOL)) {\n const include = goodTags(str.split(AND_REGX))\n const exclude = badTags(str.split(AND_REGX))\n\n return include.every(s => tags.includes(s)) && !exclude.some(s => tags.includes(s))\n }\n const include = goodTags(str.split(PLAIN_REGX))\n const exclude = badTags(str.split(PLAIN_REGX))\n\n return (include.length === 0 || include.some(s => tags.includes(s))) && !exclude.some(s => tags.includes(s))\n }\n\nconst goodTags = (arr: string[]) => {\n return arr.filter(s => s.match(GOOD_REGX))\n}\n\nconst badTags = (arr: string[]) => {\n return arr.filter(s => s.match(BAD_REGX)).map(s => s.replace(NOT_SYMBOL, ''))\n}\n","import { describeIf } from '../describeIf.ts'\nimport { itIf } from '../itIf.ts'\nimport { testIf } from '../testIf.ts'\nimport { matchFilter } from './filter.ts'\n\n// Based on https://www.npmjs.com/package/jest-tags/v/1.0.1\n\nexport function tags(...tagLabels: string[]) {\n const tagsParam = process.argv.indexOf('--tags')\n const passedTags = tagsParam > 0 ? process.argv[tagsParam + 1] : undefined\n const filter = matchFilter(passedTags)\n const thisGlobal = global\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const chain: Record<string, any> = {}\n\n const filterMatch = filter(tagLabels)\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n chain.describeIf = filterMatch ? describeIf : (_param: any) => describe.skip\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n chain.itIf = filterMatch ? itIf : (_param: any) => it.skip\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n chain.testIf = filterMatch ? testIf : (_param: any) => test.skip\n chain.describe = filterMatch ? thisGlobal.describe : thisGlobal.xdescribe\n chain.it = filterMatch ? thisGlobal.it : thisGlobal.xit\n chain.test = filterMatch ? thisGlobal.test : thisGlobal.xtest\n chain.test.only = thisGlobal.test.only\n chain.test.skip = thisGlobal.test.skip\n chain.xtest = thisGlobal.xtest\n chain.xit = thisGlobal.xit\n\n return chain\n}\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;;;ACL3D,IAAM,aAAa;AAEnB,IAAM,aAAa;AAEnB,IAAM,YAAY;;;ACFlB,IAAM,SAAS,CAAC,QAAgB,CAAC,GAAG,GAAG,EAAE,IAAI,YAAU,KAAK,MAAM,EAAE,EAAE,KAAK,EAAE;AAE7E,IAAM,WAAW,IAAI,OAAO,OAAO,OAAO,UAAU,CAAC,MAAM;AAE3D,IAAM,UAAU,IAAI,OAAO,OAAO,OAAO,SAAS,CAAC,MA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E7C,UAAQ,QAAQ,WAAW,KAAK,QAAQ,KAAK,OAAKA,MAAK,SAAS,CAAC,CAAC,MAAM,CAAC,QAAQ,KAAK,OAAKA,MAAK,SAAS,CAAC,CAAC;AAC7G;AAEJ,IAAM,WAAW,CAAC,QAAkB;AAClC,SAAO,IAAI,OAAO,OAAK,EAAE,MAAM,SAAS,CAAC;AAC3C;AAEA,IAAM,UAAU,CAAC,QAAkB;AACjC,SAAO,IAAI,OAAO,OAAK,EAAE,MAAM,QAAQ,CAAC,EAAE,IAAI,OAAK,EAAE,QAAQ,YAAY,EAAE,CAAC;AAC9E;;;ACtCO,SAAS,QAAQ,WAAqB;AAC3C,QAAM,YAAY,QAAQ,KAAK,QAAQ,QAAQ;AAC/C,QAAM,aAAa,YAAY,IAAI,QAAQ,KAAK,YAAY,CAAC,IAAI;AACjE,QAAM,SAAS,YAAY,UAAU;AACrC,QAAM,aAAa;AAGnB,QAAM,QAA6B,CAAC;AAEpC,QAAM,cAAc,OAAO,SAAS;AAGpC,QAAM,aAAa,cAAc,aAAa,CAAC,WAAgB,SAAS;AAExE,QAAM,OAAO,cAAc,OAAO,CAAC,WAAgB,GAAG;AAEtD,QAAM,SAAS,cAAc,SAAS,CAAC,WAAgB,KAAK;AAC5D,QAAM,WAAW,cAAc,WAAW,WAAW,WAAW;AAChE,QAAM,KAAK,cAAc,WAAW,KAAK,WAAW;AACpD,QAAM,OAAO,cAAc,WAAW,OAAO,WAAW;AACxD,QAAM,KAAK,OAAO,WAAW,KAAK;AAClC,QAAM,KAAK,OAAO,WAAW,KAAK;AAClC,QAAM,QAAQ,WAAW;AACzB,QAAM,MAAM,WAAW;AAEvB,SAAO;AACT;","names":["tags","include","exclude"]}
@@ -1,2 +0,0 @@
1
- export declare const itIf: <T>(expr?: T | null) => jest.It;
2
- //# sourceMappingURL=itIf.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"itIf.d.ts","sourceRoot":"","sources":["../../src/itIf.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,IAAI,GAAI,CAAC,SAAS,CAAC,GAAG,IAAI,YAA0B,CAAA"}
@@ -1,2 +0,0 @@
1
- export declare const itIf: <T>(expr?: T | null) => jest.It;
2
- //# sourceMappingURL=itIf.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"itIf.d.ts","sourceRoot":"","sources":["../../src/itIf.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,IAAI,GAAI,CAAC,SAAS,CAAC,GAAG,IAAI,YAA0B,CAAA"}
@@ -1,2 +0,0 @@
1
- export declare const itIf: <T>(expr?: T | null) => jest.It;
2
- //# sourceMappingURL=itIf.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"itIf.d.ts","sourceRoot":"","sources":["../../src/itIf.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,IAAI,GAAI,CAAC,SAAS,CAAC,GAAG,IAAI,YAA0B,CAAA"}
@@ -1,5 +0,0 @@
1
- export declare const NOT_SYMBOL = "!";
2
- export declare const AND_SYMBOL = "&&";
3
- export declare const OR_SYMBOL = "||";
4
- export declare const RESERVED_COMMANDS: string[];
5
- //# sourceMappingURL=config.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/tags/config.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,MAAM,CAAA;AAE7B,eAAO,MAAM,UAAU,OAAO,CAAA;AAE9B,eAAO,MAAM,SAAS,OAAO,CAAA;AAE7B,eAAO,MAAM,iBAAiB,UAAa,CAAA"}
@@ -1,5 +0,0 @@
1
- export declare const NOT_SYMBOL = "!";
2
- export declare const AND_SYMBOL = "&&";
3
- export declare const OR_SYMBOL = "||";
4
- export declare const RESERVED_COMMANDS: string[];
5
- //# sourceMappingURL=config.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/tags/config.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,MAAM,CAAA;AAE7B,eAAO,MAAM,UAAU,OAAO,CAAA;AAE9B,eAAO,MAAM,SAAS,OAAO,CAAA;AAE7B,eAAO,MAAM,iBAAiB,UAAa,CAAA"}
@@ -1,5 +0,0 @@
1
- export declare const NOT_SYMBOL = "!";
2
- export declare const AND_SYMBOL = "&&";
3
- export declare const OR_SYMBOL = "||";
4
- export declare const RESERVED_COMMANDS: string[];
5
- //# sourceMappingURL=config.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/tags/config.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,MAAM,CAAA;AAE7B,eAAO,MAAM,UAAU,OAAO,CAAA;AAE9B,eAAO,MAAM,SAAS,OAAO,CAAA;AAE7B,eAAO,MAAM,iBAAiB,UAAa,CAAA"}
@@ -1,2 +0,0 @@
1
- export declare const matchFilter: (strParam?: string) => (tags: string[]) => boolean;
2
- //# sourceMappingURL=filter.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"filter.d.ts","sourceRoot":"","sources":["../../../src/tags/filter.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,WAAW,gCAEb,MAAM,EAAE,YA0Bd,CAAA"}
@@ -1,2 +0,0 @@
1
- export declare const matchFilter: (strParam?: string) => (tags: string[]) => boolean;
2
- //# sourceMappingURL=filter.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"filter.d.ts","sourceRoot":"","sources":["../../../src/tags/filter.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,WAAW,gCAEb,MAAM,EAAE,YA0Bd,CAAA"}
@@ -1,2 +0,0 @@
1
- export declare const matchFilter: (strParam?: string) => (tags: string[]) => boolean;
2
- //# sourceMappingURL=filter.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"filter.d.ts","sourceRoot":"","sources":["../../../src/tags/filter.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,WAAW,gCAEb,MAAM,EAAE,YA0Bd,CAAA"}
@@ -1,2 +0,0 @@
1
- export declare function tags(...tagLabels: string[]): Record<string, any>;
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tags/index.ts"],"names":[],"mappings":"AAOA,wBAAgB,IAAI,CAAC,GAAG,SAAS,EAAE,MAAM,EAAE,uBA0B1C"}
@@ -1,2 +0,0 @@
1
- export declare function tags(...tagLabels: string[]): Record<string, any>;
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tags/index.ts"],"names":[],"mappings":"AAOA,wBAAgB,IAAI,CAAC,GAAG,SAAS,EAAE,MAAM,EAAE,uBA0B1C"}
@@ -1,2 +0,0 @@
1
- export declare function tags(...tagLabels: string[]): Record<string, any>;
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tags/index.ts"],"names":[],"mappings":"AAOA,wBAAgB,IAAI,CAAC,GAAG,SAAS,EAAE,MAAM,EAAE,uBA0B1C"}
@@ -1,7 +0,0 @@
1
- export declare const escape: (str: string) => string;
2
- export declare const AND_REGX: RegExp;
3
- export declare const OR_REGX: RegExp;
4
- export declare const PLAIN_REGX: RegExp;
5
- export declare const BAD_REGX: RegExp;
6
- export declare const GOOD_REGX: RegExp;
7
- //# sourceMappingURL=regexps.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"regexps.d.ts","sourceRoot":"","sources":["../../../src/tags/regexps.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM,QAAS,MAAM,WAAmD,CAAA;AAErF,eAAO,MAAM,QAAQ,QAA8C,CAAA;AAEnE,eAAO,MAAM,OAAO,QAA6C,CAAA;AAEjE,eAAO,MAAM,UAAU,QAA8B,CAAA;AAErD,eAAO,MAAM,QAAQ,QAA0C,CAAA;AAE/D,eAAO,MAAM,SAAS,QAA6C,CAAA"}
@@ -1,7 +0,0 @@
1
- export declare const escape: (str: string) => string;
2
- export declare const AND_REGX: RegExp;
3
- export declare const OR_REGX: RegExp;
4
- export declare const PLAIN_REGX: RegExp;
5
- export declare const BAD_REGX: RegExp;
6
- export declare const GOOD_REGX: RegExp;
7
- //# sourceMappingURL=regexps.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"regexps.d.ts","sourceRoot":"","sources":["../../../src/tags/regexps.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM,QAAS,MAAM,WAAmD,CAAA;AAErF,eAAO,MAAM,QAAQ,QAA8C,CAAA;AAEnE,eAAO,MAAM,OAAO,QAA6C,CAAA;AAEjE,eAAO,MAAM,UAAU,QAA8B,CAAA;AAErD,eAAO,MAAM,QAAQ,QAA0C,CAAA;AAE/D,eAAO,MAAM,SAAS,QAA6C,CAAA"}
@@ -1,7 +0,0 @@
1
- export declare const escape: (str: string) => string;
2
- export declare const AND_REGX: RegExp;
3
- export declare const OR_REGX: RegExp;
4
- export declare const PLAIN_REGX: RegExp;
5
- export declare const BAD_REGX: RegExp;
6
- export declare const GOOD_REGX: RegExp;
7
- //# sourceMappingURL=regexps.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"regexps.d.ts","sourceRoot":"","sources":["../../../src/tags/regexps.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM,QAAS,MAAM,WAAmD,CAAA;AAErF,eAAO,MAAM,QAAQ,QAA8C,CAAA;AAEnE,eAAO,MAAM,OAAO,QAA6C,CAAA;AAEjE,eAAO,MAAM,UAAU,QAA8B,CAAA;AAErD,eAAO,MAAM,QAAQ,QAA0C,CAAA;AAE/D,eAAO,MAAM,SAAS,QAA6C,CAAA"}
@@ -1,2 +0,0 @@
1
- export declare const getJestPassedParams: (argv: any) => any[];
2
- //# sourceMappingURL=utils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/tags/utils.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,mBAAmB,SAAU,GAAG,UAI5C,CAAA"}
@@ -1,2 +0,0 @@
1
- export declare const getJestPassedParams: (argv: any) => any[];
2
- //# sourceMappingURL=utils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/tags/utils.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,mBAAmB,SAAU,GAAG,UAI5C,CAAA"}
@@ -1,2 +0,0 @@
1
- export declare const getJestPassedParams: (argv: any) => any[];
2
- //# sourceMappingURL=utils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/tags/utils.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,mBAAmB,SAAU,GAAG,UAI5C,CAAA"}
@@ -1,2 +0,0 @@
1
- export declare const testIf: <T>(expr?: T | null) => jest.It;
2
- //# sourceMappingURL=testIf.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"testIf.d.ts","sourceRoot":"","sources":["../../src/testIf.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,MAAM,GAAI,CAAC,SAAS,CAAC,GAAG,IAAI,YAA8B,CAAA"}
@@ -1,2 +0,0 @@
1
- export declare const testIf: <T>(expr?: T | null) => jest.It;
2
- //# sourceMappingURL=testIf.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"testIf.d.ts","sourceRoot":"","sources":["../../src/testIf.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,MAAM,GAAI,CAAC,SAAS,CAAC,GAAG,IAAI,YAA8B,CAAA"}
@@ -1,2 +0,0 @@
1
- export declare const testIf: <T>(expr?: T | null) => jest.It;
2
- //# sourceMappingURL=testIf.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"testIf.d.ts","sourceRoot":"","sources":["../../src/testIf.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,MAAM,GAAI,CAAC,SAAS,CAAC,GAAG,IAAI,YAA8B,CAAA"}
@@ -1,2 +0,0 @@
1
- export declare const describeIf: <T>(expr?: T | null) => jest.Describe;
2
- //# sourceMappingURL=describeIf.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"describeIf.d.ts","sourceRoot":"","sources":["../../src/describeIf.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,UAAU,GAAI,CAAC,SAAS,CAAC,GAAG,IAAI,kBAAsC,CAAA"}
@@ -1,2 +0,0 @@
1
- export declare const describeIf: <T>(expr?: T | null) => jest.Describe;
2
- //# sourceMappingURL=describeIf.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"describeIf.d.ts","sourceRoot":"","sources":["../../src/describeIf.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,UAAU,GAAI,CAAC,SAAS,CAAC,GAAG,IAAI,kBAAsC,CAAA"}
@@ -1,2 +0,0 @@
1
- export declare const describeIf: <T>(expr?: T | null) => jest.Describe;
2
- //# sourceMappingURL=describeIf.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"describeIf.d.ts","sourceRoot":"","sources":["../../src/describeIf.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,UAAU,GAAI,CAAC,SAAS,CAAC,GAAG,IAAI,kBAAsC,CAAA"}