@xylabs/jest-helpers 2.11.0 → 2.11.2
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/describeIf.d.mts +8 -0
- package/dist/describeIf.d.mts.map +1 -0
- package/dist/describeIf.js +11 -0
- package/dist/describeIf.js.map +1 -0
- package/dist/describeIf.mjs +9 -0
- package/dist/describeIf.mjs.map +1 -0
- package/dist/index.js +6 -21
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -22
- package/dist/index.mjs.map +1 -1
- package/dist/itIf.d.mts +8 -0
- package/dist/itIf.d.mts.map +1 -0
- package/dist/itIf.js +11 -0
- package/dist/itIf.js.map +1 -0
- package/dist/itIf.mjs +9 -0
- package/dist/itIf.mjs.map +1 -0
- package/dist/testIf.d.mts +8 -0
- package/dist/testIf.d.mts.map +1 -0
- package/dist/testIf.js +11 -0
- package/dist/testIf.js.map +1 -0
- package/dist/testIf.mjs +9 -0
- package/dist/testIf.mjs.map +1 -0
- package/package.json +5 -4
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="jest" />
|
|
2
|
+
/**
|
|
3
|
+
* Conditionally runs or skips the describe
|
|
4
|
+
* @param expr The condition to evaluate
|
|
5
|
+
* @returns If the condition is true, describe, otherwise skips
|
|
6
|
+
*/
|
|
7
|
+
export declare const describeIf: <T>(expr?: T | null | undefined) => jest.Describe;
|
|
8
|
+
//# sourceMappingURL=describeIf.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"describeIf.d.ts","sourceRoot":"","sources":["../src/describeIf.ts"],"names":[],"mappings":";AAAA;;;;GAIG;AACH,eAAO,MAAM,UAAU,mDAA4D,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Conditionally runs or skips the describe
|
|
5
|
+
* @param expr The condition to evaluate
|
|
6
|
+
* @returns If the condition is true, describe, otherwise skips
|
|
7
|
+
*/
|
|
8
|
+
const describeIf = (expr) => (expr ? describe : describe.skip);
|
|
9
|
+
|
|
10
|
+
exports.describeIf = describeIf;
|
|
11
|
+
//# sourceMappingURL=describeIf.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"describeIf.js","sources":["../src/describeIf.ts"],"sourcesContent":[null],"names":[],"mappings":";;;AAAA;;;;AAIG,MAAA,UAAA,GAAA,CAAA,IAAA,MAAA,IAAA,GAAA,QAAA,GAAA,QAAA,CAAA,IAAA;;;;"}
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
const describeIf = (expr) => (expr ? describe : describe.skip);
|
|
7
|
+
|
|
8
|
+
export { describeIf };
|
|
9
|
+
//# sourceMappingURL=describeIf.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"describeIf.mjs","sources":["../src/describeIf.ts"],"sourcesContent":[null],"names":[],"mappings":";AAAA;;;;AAIG,MAAA,UAAA,GAAA,CAAA,IAAA,MAAA,IAAA,GAAA,QAAA,GAAA,QAAA,CAAA,IAAA;;;;"}
|
package/dist/index.js
CHANGED
|
@@ -1,27 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
* @returns If the condition is true, describe, otherwise skips
|
|
7
|
-
*/
|
|
8
|
-
const describeIf = (expr) => (expr ? describe : describe.skip);
|
|
3
|
+
var describeIf = require('./describeIf.js');
|
|
4
|
+
var itIf = require('./itIf.js');
|
|
5
|
+
var testIf = require('./testIf.js');
|
|
9
6
|
|
|
10
|
-
/**
|
|
11
|
-
* Conditionally runs or skips the it
|
|
12
|
-
* @param expr The condition to evaluate
|
|
13
|
-
* @returns If the condition is true, it, otherwise skips
|
|
14
|
-
*/
|
|
15
|
-
const itIf = (expr) => (expr ? it : it.skip);
|
|
16
7
|
|
|
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
|
-
const testIf = (expr) => (expr ? test : test.skip);
|
|
23
8
|
|
|
24
|
-
exports.describeIf = describeIf;
|
|
25
|
-
exports.itIf = itIf;
|
|
26
|
-
exports.testIf = testIf;
|
|
9
|
+
exports.describeIf = describeIf.describeIf;
|
|
10
|
+
exports.itIf = itIf.itIf;
|
|
11
|
+
exports.testIf = testIf.testIf;
|
|
27
12
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
|
package/dist/index.mjs
CHANGED
|
@@ -1,23 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
* @returns If the condition is true, describe, otherwise skips
|
|
5
|
-
*/
|
|
6
|
-
const describeIf = (expr) => (expr ? describe : describe.skip);
|
|
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
|
-
const itIf = (expr) => (expr ? it : it.skip);
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Conditionally runs or skips the test
|
|
17
|
-
* @param expr The condition to evaluate
|
|
18
|
-
* @returns If the condition is true, test, otherwise skips
|
|
19
|
-
*/
|
|
20
|
-
const testIf = (expr) => (expr ? test : test.skip);
|
|
21
|
-
|
|
22
|
-
export { describeIf, itIf, testIf };
|
|
1
|
+
export { describeIf } from './describeIf.mjs';
|
|
2
|
+
export { itIf } from './itIf.mjs';
|
|
3
|
+
export { testIf } from './testIf.mjs';
|
|
23
4
|
//# sourceMappingURL=index.mjs.map
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":[
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
package/dist/itIf.d.mts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="jest" />
|
|
2
|
+
/**
|
|
3
|
+
* Conditionally runs or skips the it
|
|
4
|
+
* @param expr The condition to evaluate
|
|
5
|
+
* @returns If the condition is true, it, otherwise skips
|
|
6
|
+
*/
|
|
7
|
+
export declare const itIf: <T>(expr?: T | null | undefined) => jest.It;
|
|
8
|
+
//# sourceMappingURL=itIf.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"itIf.d.ts","sourceRoot":"","sources":["../src/itIf.ts"],"names":[],"mappings":";AAAA;;;;GAIG;AACH,eAAO,MAAM,IAAI,6CAAgD,CAAA"}
|
package/dist/itIf.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Conditionally runs or skips the it
|
|
5
|
+
* @param expr The condition to evaluate
|
|
6
|
+
* @returns If the condition is true, it, otherwise skips
|
|
7
|
+
*/
|
|
8
|
+
const itIf = (expr) => (expr ? it : it.skip);
|
|
9
|
+
|
|
10
|
+
exports.itIf = itIf;
|
|
11
|
+
//# sourceMappingURL=itIf.js.map
|
package/dist/itIf.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"itIf.js","sources":["../src/itIf.ts"],"sourcesContent":[null],"names":[],"mappings":";;;AAAA;;;;AAIG,MAAA,IAAA,GAAA,CAAA,IAAA,MAAA,IAAA,GAAA,EAAA,GAAA,EAAA,CAAA,IAAA;;;;"}
|
package/dist/itIf.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"itIf.mjs","sources":["../src/itIf.ts"],"sourcesContent":[null],"names":[],"mappings":";AAAA;;;;AAIG,MAAA,IAAA,GAAA,CAAA,IAAA,MAAA,IAAA,GAAA,EAAA,GAAA,EAAA,CAAA,IAAA;;;;"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="jest" />
|
|
2
|
+
/**
|
|
3
|
+
* Conditionally runs or skips the test
|
|
4
|
+
* @param expr The condition to evaluate
|
|
5
|
+
* @returns If the condition is true, test, otherwise skips
|
|
6
|
+
*/
|
|
7
|
+
export declare const testIf: <T>(expr?: T | null | undefined) => jest.It;
|
|
8
|
+
//# sourceMappingURL=testIf.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"testIf.d.ts","sourceRoot":"","sources":["../src/testIf.ts"],"names":[],"mappings":";AAAA;;;;GAIG;AACH,eAAO,MAAM,MAAM,6CAAoD,CAAA"}
|
package/dist/testIf.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Conditionally runs or skips the test
|
|
5
|
+
* @param expr The condition to evaluate
|
|
6
|
+
* @returns If the condition is true, test, otherwise skips
|
|
7
|
+
*/
|
|
8
|
+
const testIf = (expr) => (expr ? test : test.skip);
|
|
9
|
+
|
|
10
|
+
exports.testIf = testIf;
|
|
11
|
+
//# sourceMappingURL=testIf.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"testIf.js","sources":["../src/testIf.ts"],"sourcesContent":[null],"names":[],"mappings":";;;AAAA;;;;AAIG,MAAA,MAAA,GAAA,CAAA,IAAA,MAAA,IAAA,GAAA,IAAA,GAAA,IAAA,CAAA,IAAA;;;;"}
|
package/dist/testIf.mjs
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Conditionally runs or skips the test
|
|
3
|
+
* @param expr The condition to evaluate
|
|
4
|
+
* @returns If the condition is true, test, otherwise skips
|
|
5
|
+
*/
|
|
6
|
+
const testIf = (expr) => (expr ? test : test.skip);
|
|
7
|
+
|
|
8
|
+
export { testIf };
|
|
9
|
+
//# sourceMappingURL=testIf.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"testIf.mjs","sources":["../src/testIf.ts"],"sourcesContent":[null],"names":[],"mappings":";AAAA;;;;AAIG,MAAA,MAAA,GAAA,CAAA,IAAA,MAAA,IAAA,GAAA,IAAA,GAAA,IAAA,CAAA,IAAA;;;;"}
|
package/package.json
CHANGED
|
@@ -48,9 +48,10 @@
|
|
|
48
48
|
"esm"
|
|
49
49
|
],
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@xylabs/ts-scripts-yarn3": "^3.0.0-rc.
|
|
52
|
-
"@xylabs/tsconfig": "^3.0.0-rc.
|
|
53
|
-
"jest": "^29.7.0"
|
|
51
|
+
"@xylabs/ts-scripts-yarn3": "^3.0.0-rc.27",
|
|
52
|
+
"@xylabs/tsconfig": "^3.0.0-rc.27",
|
|
53
|
+
"jest": "^29.7.0",
|
|
54
|
+
"typescript": "^5.2.2"
|
|
54
55
|
},
|
|
55
56
|
"peerDependencies": {
|
|
56
57
|
"jest": "*"
|
|
@@ -63,5 +64,5 @@
|
|
|
63
64
|
"url": "https://github.com/xylabs/sdk-js.git"
|
|
64
65
|
},
|
|
65
66
|
"sideEffects": false,
|
|
66
|
-
"version": "2.11.
|
|
67
|
+
"version": "2.11.2"
|
|
67
68
|
}
|