@thisisagile/easy-test 15.28.0 → 15.28.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/matchers/Check.d.ts
CHANGED
|
@@ -12,6 +12,6 @@ declare class Check<S> {
|
|
|
12
12
|
undefined(p: (s: S[]) => any, message: ToMessage<S>): Check<S>;
|
|
13
13
|
else(message?: ToMessage<S>): jest.CustomMatcherResult;
|
|
14
14
|
}
|
|
15
|
-
export declare const check: <S>(ctx: jest.MatcherContext, received: S, expected?: S
|
|
16
|
-
export declare const checkDefined: <S>(ctx: jest.MatcherContext, received: S, expected?: S
|
|
15
|
+
export declare const check: <S>(ctx: jest.MatcherContext, received: S, expected?: S) => Check<S>;
|
|
16
|
+
export declare const checkDefined: <S>(ctx: jest.MatcherContext, received: S, expected?: S) => Check<S>;
|
|
17
17
|
export {};
|
package/dist/mock/Mocks.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ export declare class Mocks {
|
|
|
21
21
|
};
|
|
22
22
|
};
|
|
23
23
|
clear: () => typeof jest;
|
|
24
|
-
impl: (f?: (
|
|
24
|
+
impl: (f?: (...args: any[]) => any) => jest.Mock;
|
|
25
25
|
property: <T extends object, P extends keyof { [K in keyof Required<T> as Required<T>[K] extends jest.Func ? never : K]: Required<T>[K]; }>(object: T, getter: P, value: T[P]) => jest.SpyInstance;
|
|
26
26
|
reject: (value?: unknown) => jest.Mock;
|
|
27
27
|
rejectWith: <T = any>(props?: Partial<T>) => jest.Mock;
|
package/dist/utils/Utils.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ArrayLike } from './Types';
|
|
2
|
-
export declare const isDefined: <T = unknown>(o?: T
|
|
2
|
+
export declare const isDefined: <T = unknown>(o?: T) => boolean;
|
|
3
3
|
export declare const isNumber: (o?: unknown) => o is number;
|
|
4
4
|
export declare const isFunction: (o?: unknown) => o is (...params: unknown[]) => unknown;
|
|
5
5
|
export declare const isA: <T>(t?: unknown, ...properties: (keyof T)[]) => t is T;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thisisagile/easy-test",
|
|
3
|
-
"version": "15.28.
|
|
3
|
+
"version": "15.28.1",
|
|
4
4
|
"description": "Straightforward library for testing microservices built with @thisisagile/easy",
|
|
5
5
|
"author": "Sander Hoogendoorn",
|
|
6
6
|
"license": "MIT",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@jest/expect-utils": "^29.7.0",
|
|
44
44
|
"@types/jest": "^29.5.12",
|
|
45
|
-
"@types/node": "^18.19.
|
|
45
|
+
"@types/node": "^18.19.34",
|
|
46
46
|
"expect": "^29.7.0",
|
|
47
47
|
"jest": "^29.7.0",
|
|
48
48
|
"jest-junit": "^16.0.0",
|