@clipboard-health/testing-core 2.2.89 → 2.2.91
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/package.json +2 -2
- package/src/lib/expectToBeFailure.js +1 -1
- package/src/lib/expectToBeFailure.js.map +1 -1
- package/src/lib/expectToBeLeft.js +1 -1
- package/src/lib/expectToBeLeft.js.map +1 -1
- package/src/lib/expectToBeNone.js +1 -1
- package/src/lib/expectToBeNone.js.map +1 -1
- package/src/lib/expectToBeRight.js +1 -1
- package/src/lib/expectToBeRight.js.map +1 -1
- package/src/lib/expectToBeSafeParseError.d.ts +1 -1
- package/src/lib/expectToBeSafeParseSuccess.d.ts +1 -1
- package/src/lib/expectToBeSome.js +1 -1
- package/src/lib/expectToBeSome.js.map +1 -1
- package/src/lib/expectToBeSuccess.js +1 -1
- package/src/lib/expectToBeSuccess.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clipboard-health/testing-core",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.91",
|
|
4
4
|
"description": "TypeScript-friendly testing utilities.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"expect",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"access": "public"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@clipboard-health/util-ts": "5.3.
|
|
24
|
+
"@clipboard-health/util-ts": "5.3.27",
|
|
25
25
|
"tslib": "2.8.1"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
@@ -9,6 +9,6 @@ const expectToBeLeft_1 = require("./expectToBeLeft");
|
|
|
9
9
|
*/
|
|
10
10
|
function expectToBeFailure(value) {
|
|
11
11
|
(0, expectToBeLeft_1.expectToBeLeft)(value);
|
|
12
|
-
(0, strict_1.ok)((0, util_ts_1.isFailure)(value));
|
|
12
|
+
(0, strict_1.ok)((0, util_ts_1.isFailure)(value), "Expected Failure, got Success");
|
|
13
13
|
}
|
|
14
14
|
//# sourceMappingURL=expectToBeFailure.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expectToBeFailure.js","sourceRoot":"","sources":["../../../../../packages/testing-core/src/lib/expectToBeFailure.ts"],"names":[],"mappings":";;AAeA,8CAKC;AApBD,+CAAwC;AAExC,uDAMmC;AAEnC,qDAAkD;AAElD;;GAEG;AACH,SAAgB,iBAAiB,CAC/B,KAAmC;IAEnC,IAAA,+BAAc,EAAC,KAAK,CAAC,CAAC;IACtB,IAAA,WAAE,EAAC,IAAA,mBAAS,EAAC,KAAK,CAAC,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"expectToBeFailure.js","sourceRoot":"","sources":["../../../../../packages/testing-core/src/lib/expectToBeFailure.ts"],"names":[],"mappings":";;AAeA,8CAKC;AApBD,+CAAwC;AAExC,uDAMmC;AAEnC,qDAAkD;AAElD;;GAEG;AACH,SAAgB,iBAAiB,CAC/B,KAAmC;IAEnC,IAAA,+BAAc,EAAC,KAAK,CAAC,CAAC;IACtB,IAAA,WAAE,EAAC,IAAA,mBAAS,EAAC,KAAK,CAAC,EAAE,+BAA+B,CAAC,CAAC;AACxD,CAAC"}
|
|
@@ -11,6 +11,6 @@ const expectToBeDefined_1 = require("./expectToBeDefined");
|
|
|
11
11
|
*/
|
|
12
12
|
function expectToBeLeft(value) {
|
|
13
13
|
(0, expectToBeDefined_1.expectToBeDefined)(value);
|
|
14
|
-
(0, strict_1.ok)(util_ts_1.either.isLeft(value));
|
|
14
|
+
(0, strict_1.ok)(util_ts_1.either.isLeft(value), "Expected Left, got Right");
|
|
15
15
|
}
|
|
16
16
|
//# sourceMappingURL=expectToBeLeft.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expectToBeLeft.js","sourceRoot":"","sources":["../../../../../packages/testing-core/src/lib/expectToBeLeft.ts"],"names":[],"mappings":";;AAWA,wCAKC;AAhBD,+CAAwC;AAExC,uDAAwD;AAExD,2DAAwD;AAExD;;;;GAIG;AACH,SAAgB,cAAc,CAC5B,KAAiC;IAEjC,IAAA,qCAAiB,EAAC,KAAK,CAAC,CAAC;IACzB,IAAA,WAAE,EAAC,gBAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"expectToBeLeft.js","sourceRoot":"","sources":["../../../../../packages/testing-core/src/lib/expectToBeLeft.ts"],"names":[],"mappings":";;AAWA,wCAKC;AAhBD,+CAAwC;AAExC,uDAAwD;AAExD,2DAAwD;AAExD;;;;GAIG;AACH,SAAgB,cAAc,CAC5B,KAAiC;IAEjC,IAAA,qCAAiB,EAAC,KAAK,CAAC,CAAC;IACzB,IAAA,WAAE,EAAC,gBAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,0BAA0B,CAAC,CAAC;AAClD,CAAC"}
|
|
@@ -11,6 +11,6 @@ const expectToBeDefined_1 = require("./expectToBeDefined");
|
|
|
11
11
|
*/
|
|
12
12
|
function expectToBeNone(value) {
|
|
13
13
|
(0, expectToBeDefined_1.expectToBeDefined)(value);
|
|
14
|
-
(0, strict_1.ok)(util_ts_1.option.isNone(value));
|
|
14
|
+
(0, strict_1.ok)(util_ts_1.option.isNone(value), "Expected None, got Some");
|
|
15
15
|
}
|
|
16
16
|
//# sourceMappingURL=expectToBeNone.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expectToBeNone.js","sourceRoot":"","sources":["../../../../../packages/testing-core/src/lib/expectToBeNone.ts"],"names":[],"mappings":";;AAWA,wCAGC;AAdD,+CAAwC;AAExC,uDAAwD;AAExD,2DAAwD;AAExD;;;;GAIG;AACH,SAAgB,cAAc,CAAI,KAA8B;IAC9D,IAAA,qCAAiB,EAAC,KAAK,CAAC,CAAC;IACzB,IAAA,WAAE,EAAC,gBAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"expectToBeNone.js","sourceRoot":"","sources":["../../../../../packages/testing-core/src/lib/expectToBeNone.ts"],"names":[],"mappings":";;AAWA,wCAGC;AAdD,+CAAwC;AAExC,uDAAwD;AAExD,2DAAwD;AAExD;;;;GAIG;AACH,SAAgB,cAAc,CAAI,KAA8B;IAC9D,IAAA,qCAAiB,EAAC,KAAK,CAAC,CAAC;IACzB,IAAA,WAAE,EAAC,gBAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,yBAAyB,CAAC,CAAC;AACjD,CAAC"}
|
|
@@ -11,6 +11,6 @@ const expectToBeDefined_1 = require("./expectToBeDefined");
|
|
|
11
11
|
*/
|
|
12
12
|
function expectToBeRight(value) {
|
|
13
13
|
(0, expectToBeDefined_1.expectToBeDefined)(value);
|
|
14
|
-
(0, strict_1.ok)(util_ts_1.either.isRight(value));
|
|
14
|
+
(0, strict_1.ok)(util_ts_1.either.isRight(value), "Expected Right, got Left");
|
|
15
15
|
}
|
|
16
16
|
//# sourceMappingURL=expectToBeRight.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expectToBeRight.js","sourceRoot":"","sources":["../../../../../packages/testing-core/src/lib/expectToBeRight.ts"],"names":[],"mappings":";;AAWA,0CAKC;AAhBD,+CAAwC;AAExC,uDAAwD;AAExD,2DAAwD;AAExD;;;;GAIG;AACH,SAAgB,eAAe,CAC7B,KAAiC;IAEjC,IAAA,qCAAiB,EAAC,KAAK,CAAC,CAAC;IACzB,IAAA,WAAE,EAAC,gBAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"expectToBeRight.js","sourceRoot":"","sources":["../../../../../packages/testing-core/src/lib/expectToBeRight.ts"],"names":[],"mappings":";;AAWA,0CAKC;AAhBD,+CAAwC;AAExC,uDAAwD;AAExD,2DAAwD;AAExD;;;;GAIG;AACH,SAAgB,eAAe,CAC7B,KAAiC;IAEjC,IAAA,qCAAiB,EAAC,KAAK,CAAC,CAAC;IACzB,IAAA,WAAE,EAAC,gBAAC,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,0BAA0B,CAAC,CAAC;AACnD,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { SafeParseError, SafeParseReturnType } from "zod";
|
|
2
2
|
/**
|
|
3
3
|
* Asserts and narrows the type for Zod SafeParseReturnType to a SafeParseError.
|
|
4
4
|
* @param value - The SafeParseReturnType value to check
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { SafeParseReturnType, SafeParseSuccess } from "zod";
|
|
2
2
|
/**
|
|
3
3
|
* Asserts and narrows the type for Zod SafeParseReturnType to a SafeParseSuccess.
|
|
4
4
|
* @param value - The SafeParseReturnType value to check
|
|
@@ -11,6 +11,6 @@ const expectToBeDefined_1 = require("./expectToBeDefined");
|
|
|
11
11
|
*/
|
|
12
12
|
function expectToBeSome(value) {
|
|
13
13
|
(0, expectToBeDefined_1.expectToBeDefined)(value);
|
|
14
|
-
(0, strict_1.ok)(util_ts_1.option.isSome(value));
|
|
14
|
+
(0, strict_1.ok)(util_ts_1.option.isSome(value), "Expected Some, got None");
|
|
15
15
|
}
|
|
16
16
|
//# sourceMappingURL=expectToBeSome.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expectToBeSome.js","sourceRoot":"","sources":["../../../../../packages/testing-core/src/lib/expectToBeSome.ts"],"names":[],"mappings":";;AAWA,wCAGC;AAdD,+CAAwC;AAExC,uDAAwD;AAExD,2DAAwD;AAExD;;;;GAIG;AACH,SAAgB,cAAc,CAAI,KAA8B;IAC9D,IAAA,qCAAiB,EAAC,KAAK,CAAC,CAAC;IACzB,IAAA,WAAE,EAAC,gBAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"expectToBeSome.js","sourceRoot":"","sources":["../../../../../packages/testing-core/src/lib/expectToBeSome.ts"],"names":[],"mappings":";;AAWA,wCAGC;AAdD,+CAAwC;AAExC,uDAAwD;AAExD,2DAAwD;AAExD;;;;GAIG;AACH,SAAgB,cAAc,CAAI,KAA8B;IAC9D,IAAA,qCAAiB,EAAC,KAAK,CAAC,CAAC;IACzB,IAAA,WAAE,EAAC,gBAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,yBAAyB,CAAC,CAAC;AACjD,CAAC"}
|
|
@@ -9,6 +9,6 @@ const expectToBeRight_1 = require("./expectToBeRight");
|
|
|
9
9
|
*/
|
|
10
10
|
function expectToBeSuccess(value) {
|
|
11
11
|
(0, expectToBeRight_1.expectToBeRight)(value);
|
|
12
|
-
(0, strict_1.ok)((0, util_ts_1.isSuccess)(value));
|
|
12
|
+
(0, strict_1.ok)((0, util_ts_1.isSuccess)(value), "Expected Success, got Failure");
|
|
13
13
|
}
|
|
14
14
|
//# sourceMappingURL=expectToBeSuccess.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expectToBeSuccess.js","sourceRoot":"","sources":["../../../../../packages/testing-core/src/lib/expectToBeSuccess.ts"],"names":[],"mappings":";;AAcA,8CAKC;AAnBD,+CAAwC;AAExC,uDAKmC;AAEnC,uDAAoD;AAEpD;;GAEG;AACH,SAAgB,iBAAiB,CAC/B,KAAmC;IAEnC,IAAA,iCAAe,EAAC,KAAK,CAAC,CAAC;IACvB,IAAA,WAAE,EAAC,IAAA,mBAAS,EAAC,KAAK,CAAC,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"expectToBeSuccess.js","sourceRoot":"","sources":["../../../../../packages/testing-core/src/lib/expectToBeSuccess.ts"],"names":[],"mappings":";;AAcA,8CAKC;AAnBD,+CAAwC;AAExC,uDAKmC;AAEnC,uDAAoD;AAEpD;;GAEG;AACH,SAAgB,iBAAiB,CAC/B,KAAmC;IAEnC,IAAA,iCAAe,EAAC,KAAK,CAAC,CAAC;IACvB,IAAA,WAAE,EAAC,IAAA,mBAAS,EAAC,KAAK,CAAC,EAAE,+BAA+B,CAAC,CAAC;AACxD,CAAC"}
|