@clipboard-health/testing-core 2.9.2 → 2.9.3
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clipboard-health/testing-core",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.3",
|
|
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.
|
|
24
|
+
"@clipboard-health/util-ts": "5.14.0",
|
|
25
25
|
"tslib": "2.8.1"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
@@ -2,4 +2,4 @@ import { type either as E, type Failure, type ServiceError, type ServiceResult }
|
|
|
2
2
|
/**
|
|
3
3
|
* Alias for {@link expectToBeLeft}
|
|
4
4
|
*/
|
|
5
|
-
export declare function expectToBeFailure<A>(value: ServiceResult<A> | undefined): asserts value is E.Left<
|
|
5
|
+
export declare function expectToBeFailure<A, ErrorType extends ServiceError = ServiceError>(value: ServiceResult<A, ErrorType> | undefined): asserts value is E.Left<ErrorType> & Failure<ErrorType>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expectToBeFailure.js","sourceRoot":"","sources":["../../../../../packages/testing-core/src/lib/expectToBeFailure.ts"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,uDAMmC;AAEnC,qDAAkD;AAElD;;GAEG;AACH,2BACE,
|
|
1
|
+
{"version":3,"file":"expectToBeFailure.js","sourceRoot":"","sources":["../../../../../packages/testing-core/src/lib/expectToBeFailure.ts"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,uDAMmC;AAEnC,qDAAkD;AAElD;;GAEG;AACH,2BACE,KAA8C;IAE9C,IAAA,+BAAc,EAAC,KAAK,CAAC,CAAC;IACtB,IAAA,WAAE,EAAC,IAAA,mBAAS,EAAC,KAAK,CAAC,EAAE,+BAA+B,CAAC,CAAC;AACxD,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type either as E, type ServiceResult, type Success } from "@clipboard-health/util-ts";
|
|
1
|
+
import { type either as E, type ServiceError, type ServiceResult, type Success } from "@clipboard-health/util-ts";
|
|
2
2
|
/**
|
|
3
3
|
* Alias for {@link expectToBeRight}
|
|
4
4
|
*/
|
|
5
|
-
export declare function expectToBeSuccess<A>(value: ServiceResult<A> | undefined): asserts value is E.Right<A> & Success<A>;
|
|
5
|
+
export declare function expectToBeSuccess<A, ErrorType extends ServiceError = ServiceError>(value: ServiceResult<A, ErrorType> | undefined): asserts value is E.Right<A> & Success<A>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expectToBeSuccess.js","sourceRoot":"","sources":["../../../../../packages/testing-core/src/lib/expectToBeSuccess.ts"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,
|
|
1
|
+
{"version":3,"file":"expectToBeSuccess.js","sourceRoot":"","sources":["../../../../../packages/testing-core/src/lib/expectToBeSuccess.ts"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,uDAMmC;AAEnC,uDAAoD;AAEpD;;GAEG;AACH,2BACE,KAA8C;IAE9C,IAAA,iCAAe,EAAC,KAAK,CAAC,CAAC;IACvB,IAAA,WAAE,EAAC,IAAA,mBAAS,EAAC,KAAK,CAAC,EAAE,+BAA+B,CAAC,CAAC;AACxD,CAAC"}
|