@xylabs/jest-helpers 2.9.3 → 2.10.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/{esm/describeIf.js → describeIf.d.mts} +3 -2
- package/dist/{types/describeIf.d.ts → describeIf.d.ts} +3 -3
- package/dist/describeIf.js +31 -0
- package/dist/describeIf.js.map +1 -0
- package/dist/describeIf.mjs +6 -0
- package/dist/describeIf.mjs.map +1 -0
- package/dist/index.d.mts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +43 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +14 -0
- package/dist/index.mjs.map +1 -0
- package/dist/{esm/itIf.js → itIf.d.mts} +3 -2
- package/dist/{types/itIf.d.ts → itIf.d.ts} +3 -3
- package/dist/itIf.js +31 -0
- package/dist/itIf.js.map +1 -0
- package/dist/itIf.mjs +6 -0
- package/dist/itIf.mjs.map +1 -0
- package/dist/{esm/testIf.js → testIf.d.mts} +3 -2
- package/dist/{types/testIf.d.ts → testIf.d.ts} +3 -3
- package/dist/testIf.js +31 -0
- package/dist/testIf.js.map +1 -0
- package/dist/testIf.mjs +6 -0
- package/dist/testIf.mjs.map +1 -0
- package/package.json +29 -15
- package/tsup.config.ts +14 -0
- package/dist/cjs/describeIf.js +0 -11
- package/dist/cjs/describeIf.js.map +0 -1
- package/dist/cjs/index.js +0 -7
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/itIf.js +0 -11
- package/dist/cjs/itIf.js.map +0 -1
- package/dist/cjs/testIf.js +0 -11
- package/dist/cjs/testIf.js.map +0 -1
- package/dist/docs.json +0 -408
- package/dist/esm/describeIf.js.map +0 -1
- package/dist/esm/index.js +0 -4
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/itIf.js.map +0 -1
- package/dist/esm/testIf.js.map +0 -1
- package/dist/types/describeIf.d.ts.map +0 -1
- package/dist/types/index.d.ts +0 -4
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/itIf.d.ts.map +0 -1
- package/dist/types/testIf.d.ts.map +0 -1
- package/docs/assets/highlight.css +0 -50
- package/docs/assets/main.js +0 -58
- package/docs/assets/search.js +0 -1
- package/docs/assets/style.css +0 -1367
- package/docs/functions/describeIf.html +0 -64
- package/docs/functions/itIf.html +0 -64
- package/docs/functions/testIf.html +0 -64
- package/docs/index.html +0 -84
- package/docs/modules.html +0 -46
|
@@ -3,5 +3,6 @@
|
|
|
3
3
|
* @param expr The condition to evaluate
|
|
4
4
|
* @returns If the condition is true, describe, otherwise skips
|
|
5
5
|
*/
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
declare const describeIf: <T>(expr?: T | null | undefined) => jest.Describe;
|
|
7
|
+
|
|
8
|
+
export { describeIf };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/// <reference types="jest" />
|
|
2
1
|
/**
|
|
3
2
|
* Conditionally runs or skips the describe
|
|
4
3
|
* @param expr The condition to evaluate
|
|
5
4
|
* @returns If the condition is true, describe, otherwise skips
|
|
6
5
|
*/
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
declare const describeIf: <T>(expr?: T | null | undefined) => jest.Describe;
|
|
7
|
+
|
|
8
|
+
export { describeIf };
|
|
@@ -0,0 +1,31 @@
|
|
|
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/describeIf.ts
|
|
21
|
+
var describeIf_exports = {};
|
|
22
|
+
__export(describeIf_exports, {
|
|
23
|
+
describeIf: () => describeIf
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(describeIf_exports);
|
|
26
|
+
var describeIf = (expr) => expr ? describe : describe.skip;
|
|
27
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
28
|
+
0 && (module.exports = {
|
|
29
|
+
describeIf
|
|
30
|
+
});
|
|
31
|
+
//# sourceMappingURL=describeIf.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/describeIf.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"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAKO,IAAM,aAAa,CAAI,SAAqB,OAAO,WAAW,SAAS;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/describeIf.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"],"mappings":";AAKO,IAAM,aAAa,CAAI,SAAqB,OAAO,WAAW,SAAS;","names":[]}
|
package/dist/index.d.mts
ADDED
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
testIf: () => testIf
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(src_exports);
|
|
28
|
+
|
|
29
|
+
// src/describeIf.ts
|
|
30
|
+
var describeIf = (expr) => expr ? describe : describe.skip;
|
|
31
|
+
|
|
32
|
+
// src/itIf.ts
|
|
33
|
+
var itIf = (expr) => expr ? it : it.skip;
|
|
34
|
+
|
|
35
|
+
// src/testIf.ts
|
|
36
|
+
var testIf = (expr) => expr ? test : test.skip;
|
|
37
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
38
|
+
0 && (module.exports = {
|
|
39
|
+
describeIf,
|
|
40
|
+
itIf,
|
|
41
|
+
testIf
|
|
42
|
+
});
|
|
43
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/index.ts","../src/describeIf.ts","../src/itIf.ts","../src/testIf.ts"],"sourcesContent":["export * from './describeIf'\nexport * from './itIf'\nexport * from './testIf'\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"],"mappings":";;;;;;;;;;;;;;;;;;;;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;","names":[]}
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
export {
|
|
10
|
+
describeIf,
|
|
11
|
+
itIf,
|
|
12
|
+
testIf
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/describeIf.ts","../src/itIf.ts","../src/testIf.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"],"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;","names":[]}
|
|
@@ -3,5 +3,6 @@
|
|
|
3
3
|
* @param expr The condition to evaluate
|
|
4
4
|
* @returns If the condition is true, it, otherwise skips
|
|
5
5
|
*/
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
declare const itIf: <T>(expr?: T | null | undefined) => jest.It;
|
|
7
|
+
|
|
8
|
+
export { itIf };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/// <reference types="jest" />
|
|
2
1
|
/**
|
|
3
2
|
* Conditionally runs or skips the it
|
|
4
3
|
* @param expr The condition to evaluate
|
|
5
4
|
* @returns If the condition is true, it, otherwise skips
|
|
6
5
|
*/
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
declare const itIf: <T>(expr?: T | null | undefined) => jest.It;
|
|
7
|
+
|
|
8
|
+
export { itIf };
|
package/dist/itIf.js
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
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/itIf.ts
|
|
21
|
+
var itIf_exports = {};
|
|
22
|
+
__export(itIf_exports, {
|
|
23
|
+
itIf: () => itIf
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(itIf_exports);
|
|
26
|
+
var itIf = (expr) => expr ? it : it.skip;
|
|
27
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
28
|
+
0 && (module.exports = {
|
|
29
|
+
itIf
|
|
30
|
+
});
|
|
31
|
+
//# sourceMappingURL=itIf.js.map
|
package/dist/itIf.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/itIf.ts"],"sourcesContent":["/**\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"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAKO,IAAM,OAAO,CAAI,SAAqB,OAAO,KAAK,GAAG;","names":[]}
|
package/dist/itIf.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/itIf.ts"],"sourcesContent":["/**\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"],"mappings":";AAKO,IAAM,OAAO,CAAI,SAAqB,OAAO,KAAK,GAAG;","names":[]}
|
|
@@ -3,5 +3,6 @@
|
|
|
3
3
|
* @param expr The condition to evaluate
|
|
4
4
|
* @returns If the condition is true, test, otherwise skips
|
|
5
5
|
*/
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
declare const testIf: <T>(expr?: T | null | undefined) => jest.It;
|
|
7
|
+
|
|
8
|
+
export { testIf };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/// <reference types="jest" />
|
|
2
1
|
/**
|
|
3
2
|
* Conditionally runs or skips the test
|
|
4
3
|
* @param expr The condition to evaluate
|
|
5
4
|
* @returns If the condition is true, test, otherwise skips
|
|
6
5
|
*/
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
declare const testIf: <T>(expr?: T | null | undefined) => jest.It;
|
|
7
|
+
|
|
8
|
+
export { testIf };
|
package/dist/testIf.js
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
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.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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":[]}
|
package/dist/testIf.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
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":[]}
|
package/package.json
CHANGED
|
@@ -11,28 +11,39 @@
|
|
|
11
11
|
"url": "https://github.com/xylabs/sdk-js/issues"
|
|
12
12
|
},
|
|
13
13
|
"description": "Base functionality used throughout XY Labs TypeScript/JavaScript libraries",
|
|
14
|
-
"browser": "dist/esm/index.js",
|
|
15
|
-
"main": "dist/cjs/index.js",
|
|
16
|
-
"module": "dist/esm/index.js",
|
|
17
14
|
"docs": "dist/docs.json",
|
|
18
|
-
"types": "dist/
|
|
15
|
+
"types": "dist/index.d.ts",
|
|
19
16
|
"exports": {
|
|
20
17
|
".": {
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
18
|
+
"require": {
|
|
19
|
+
"types": "./dist/index.d.ts",
|
|
20
|
+
"default": "./dist/index.js"
|
|
24
21
|
},
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
}
|
|
29
|
-
"default": "./dist/esm/index.js"
|
|
22
|
+
"import": {
|
|
23
|
+
"types": "./dist/index.d.mts",
|
|
24
|
+
"default": "./dist/index.mjs"
|
|
25
|
+
}
|
|
30
26
|
},
|
|
31
27
|
"./dist/docs.json": {
|
|
32
28
|
"default": "./dist/docs.json"
|
|
33
29
|
},
|
|
30
|
+
"./cjs": {
|
|
31
|
+
"default": "./dist/index.js"
|
|
32
|
+
},
|
|
33
|
+
"./docs": {
|
|
34
|
+
"default": "./dist/docs.json"
|
|
35
|
+
},
|
|
36
|
+
"./esm": {
|
|
37
|
+
"default": "./dist/index.mjs"
|
|
38
|
+
},
|
|
34
39
|
"./package.json": "./package.json"
|
|
35
40
|
},
|
|
41
|
+
"main": "dist/index.js",
|
|
42
|
+
"module": "dist/index.mjs",
|
|
43
|
+
"scripts": {
|
|
44
|
+
"package-compile": "tsup && publint",
|
|
45
|
+
"package-recompile": "tsup && publint"
|
|
46
|
+
},
|
|
36
47
|
"homepage": "https://xylabs.com",
|
|
37
48
|
"keywords": [
|
|
38
49
|
"xylabs",
|
|
@@ -41,8 +52,11 @@
|
|
|
41
52
|
"esm"
|
|
42
53
|
],
|
|
43
54
|
"devDependencies": {
|
|
44
|
-
"@xylabs/ts-scripts-yarn3": "^2.
|
|
45
|
-
"
|
|
55
|
+
"@xylabs/ts-scripts-yarn3": "^2.19.5",
|
|
56
|
+
"@xylabs/tsconfig": "^2.19.5",
|
|
57
|
+
"jest": "^29.6.4",
|
|
58
|
+
"publint": "^0.2.2",
|
|
59
|
+
"tsup": "^7.2.0"
|
|
46
60
|
},
|
|
47
61
|
"peerDependencies": {
|
|
48
62
|
"jest": "*"
|
|
@@ -55,5 +69,5 @@
|
|
|
55
69
|
"url": "https://github.com/xylabs/sdk-js.git"
|
|
56
70
|
},
|
|
57
71
|
"sideEffects": false,
|
|
58
|
-
"version": "2.
|
|
72
|
+
"version": "2.10.0"
|
|
59
73
|
}
|
package/tsup.config.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { defineConfig } from 'tsup'
|
|
2
|
+
|
|
3
|
+
// eslint-disable-next-line import/no-default-export
|
|
4
|
+
export default defineConfig({
|
|
5
|
+
bundle: true,
|
|
6
|
+
cjsInterop: true,
|
|
7
|
+
clean: true,
|
|
8
|
+
dts: true,
|
|
9
|
+
entry: ['src'],
|
|
10
|
+
format: ['cjs', 'esm'],
|
|
11
|
+
sourcemap: true,
|
|
12
|
+
splitting: false,
|
|
13
|
+
tsconfig: 'tsconfig.json',
|
|
14
|
+
})
|
package/dist/cjs/describeIf.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.describeIf = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Conditionally runs or skips the describe
|
|
6
|
-
* @param expr The condition to evaluate
|
|
7
|
-
* @returns If the condition is true, describe, otherwise skips
|
|
8
|
-
*/
|
|
9
|
-
const describeIf = (expr) => (expr ? describe : describe.skip);
|
|
10
|
-
exports.describeIf = describeIf;
|
|
11
|
-
//# sourceMappingURL=describeIf.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"describeIf.js","sourceRoot":"","sources":["../../src/describeIf.ts"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACI,MAAM,UAAU,GAAG,CAAI,IAAe,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAA;AAAtE,QAAA,UAAU,cAA4D"}
|
package/dist/cjs/index.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./describeIf"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./itIf"), exports);
|
|
6
|
-
tslib_1.__exportStar(require("./testIf"), exports);
|
|
7
|
-
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,uDAA4B;AAC5B,iDAAsB;AACtB,mDAAwB"}
|
package/dist/cjs/itIf.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.itIf = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Conditionally runs or skips the it
|
|
6
|
-
* @param expr The condition to evaluate
|
|
7
|
-
* @returns If the condition is true, it, otherwise skips
|
|
8
|
-
*/
|
|
9
|
-
const itIf = (expr) => (expr ? it : it.skip);
|
|
10
|
-
exports.itIf = itIf;
|
|
11
|
-
//# sourceMappingURL=itIf.js.map
|
package/dist/cjs/itIf.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"itIf.js","sourceRoot":"","sources":["../../src/itIf.ts"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACI,MAAM,IAAI,GAAG,CAAI,IAAe,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAA;AAApD,QAAA,IAAI,QAAgD"}
|
package/dist/cjs/testIf.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.testIf = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Conditionally runs or skips the test
|
|
6
|
-
* @param expr The condition to evaluate
|
|
7
|
-
* @returns If the condition is true, test, otherwise skips
|
|
8
|
-
*/
|
|
9
|
-
const testIf = (expr) => (expr ? test : test.skip);
|
|
10
|
-
exports.testIf = testIf;
|
|
11
|
-
//# sourceMappingURL=testIf.js.map
|
package/dist/cjs/testIf.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"testIf.js","sourceRoot":"","sources":["../../src/testIf.ts"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACI,MAAM,MAAM,GAAG,CAAI,IAAe,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;AAA1D,QAAA,MAAM,UAAoD"}
|