@xylabs/jest-helpers 4.12.44 → 4.13.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.
- package/dist/neutral/index.d.ts +24 -0
- package/package.json +6 -6
- package/dist/types/describeIf.d.ts +0 -7
- package/dist/types/describeIf.d.ts.map +0 -1
- package/dist/types/index.d.ts +0 -5
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/itIf.d.ts +0 -7
- package/dist/types/itIf.d.ts.map +0 -1
- package/dist/types/tags/config.d.ts +0 -4
- package/dist/types/tags/config.d.ts.map +0 -1
- package/dist/types/tags/filter.d.ts +0 -2
- package/dist/types/tags/filter.d.ts.map +0 -1
- package/dist/types/tags/index.d.ts +0 -2
- package/dist/types/tags/index.d.ts.map +0 -1
- package/dist/types/tags/regexps.d.ts +0 -6
- package/dist/types/tags/regexps.d.ts.map +0 -1
- package/dist/types/testIf.d.ts +0 -7
- package/dist/types/testIf.d.ts.map +0 -1
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
export declare const describeIf: <T>(expr?: T | null) => jest.Describe;
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Conditionally runs or skips the it
|
|
10
|
+
* @param expr The condition to evaluate
|
|
11
|
+
* @returns If the condition is true, it, otherwise skips
|
|
12
|
+
*/
|
|
13
|
+
export declare const itIf: <T>(expr?: T | null) => jest.It;
|
|
14
|
+
|
|
15
|
+
export declare function tags(...tagLabels: string[]): Record<string, any>;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Conditionally runs or skips the test
|
|
19
|
+
* @param expr The condition to evaluate
|
|
20
|
+
* @returns If the condition is true, test, otherwise skips
|
|
21
|
+
*/
|
|
22
|
+
export declare const testIf: <T>(expr?: T | null) => jest.It;
|
|
23
|
+
|
|
24
|
+
export { }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xylabs/jest-helpers",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.13.0",
|
|
4
4
|
"description": "Base functionality used throughout XY Labs TypeScript/JavaScript libraries",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jest",
|
|
@@ -28,18 +28,18 @@
|
|
|
28
28
|
"type": "module",
|
|
29
29
|
"exports": {
|
|
30
30
|
".": {
|
|
31
|
-
"types": "./dist/
|
|
31
|
+
"types": "./dist/neutral/index.d.ts",
|
|
32
32
|
"default": "./dist/neutral/index.mjs"
|
|
33
33
|
},
|
|
34
34
|
"./package.json": "./package.json"
|
|
35
35
|
},
|
|
36
36
|
"module": "./dist/neutral/index.mjs",
|
|
37
|
-
"types": "./dist/
|
|
37
|
+
"types": "./dist/neutral/index.d.ts",
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@types/jest": "^30.0.0",
|
|
40
|
-
"@types/node": "^24.0.
|
|
41
|
-
"@xylabs/ts-scripts-yarn3": "^
|
|
42
|
-
"@xylabs/tsconfig": "^
|
|
40
|
+
"@types/node": "^24.0.13",
|
|
41
|
+
"@xylabs/ts-scripts-yarn3": "^7.0.0-rc.7",
|
|
42
|
+
"@xylabs/tsconfig": "^7.0.0-rc.7",
|
|
43
43
|
"typescript": "^5.8.3"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
@@ -1,7 +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
|
-
export declare const describeIf: <T>(expr?: T | null) => jest.Describe;
|
|
7
|
-
//# sourceMappingURL=describeIf.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"describeIf.d.ts","sourceRoot":"","sources":["../../src/describeIf.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,eAAO,MAAM,UAAU,GAAI,CAAC,EAAE,OAAO,CAAC,GAAG,IAAI,kBAAsC,CAAA"}
|
package/dist/types/index.d.ts
DELETED
|
@@ -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"}
|
package/dist/types/itIf.d.ts
DELETED
package/dist/types/itIf.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"itIf.d.ts","sourceRoot":"","sources":["../../src/itIf.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,eAAO,MAAM,IAAI,GAAI,CAAC,EAAE,OAAO,CAAC,GAAG,IAAI,YAA0B,CAAA"}
|
|
@@ -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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"filter.d.ts","sourceRoot":"","sources":["../../../src/tags/filter.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,WAAW,GACnB,iBAAa,MACb,MAAM,MAAM,EAAE,YA0Bd,CAAA"}
|
|
@@ -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,uBAyB1C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"regexps.d.ts","sourceRoot":"","sources":["../../../src/tags/regexps.ts"],"names":[],"mappings":"AAMA,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"}
|
package/dist/types/testIf.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"testIf.d.ts","sourceRoot":"","sources":["../../src/testIf.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,eAAO,MAAM,MAAM,GAAI,CAAC,EAAE,OAAO,CAAC,GAAG,IAAI,YAA8B,CAAA"}
|