@xylabs/jest-helpers 2.11.0 → 2.11.1
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.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.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.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 +3 -3
|
@@ -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.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;;;;"}
|
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,8 +48,8 @@
|
|
|
48
48
|
"esm"
|
|
49
49
|
],
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@xylabs/ts-scripts-yarn3": "^3.0.0-rc.
|
|
52
|
-
"@xylabs/tsconfig": "^3.0.0-rc.
|
|
51
|
+
"@xylabs/ts-scripts-yarn3": "^3.0.0-rc.16",
|
|
52
|
+
"@xylabs/tsconfig": "^3.0.0-rc.16",
|
|
53
53
|
"jest": "^29.7.0"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"url": "https://github.com/xylabs/sdk-js.git"
|
|
64
64
|
},
|
|
65
65
|
"sideEffects": false,
|
|
66
|
-
"version": "2.11.
|
|
66
|
+
"version": "2.11.1"
|
|
67
67
|
}
|