@thisisagile/easy-test 17.4.1 → 17.4.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/dist/matchers/Check.d.ts
CHANGED
package/dist/matchers/Match.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="jest" />
|
|
2
1
|
import { Uri } from '../utils/Types';
|
|
3
2
|
export declare const weExpectedButReceivedInstead: ([r, e]: [any, any]) => string;
|
|
4
3
|
export declare function toMatchAsString(this: jest.MatcherContext, received: unknown, expected: unknown): jest.CustomMatcherResult;
|
package/dist/mock/Mocks.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="jest" />
|
|
2
1
|
import { Id, Json } from '../utils/Types';
|
|
3
2
|
import { Req } from '../utils/Req';
|
|
4
3
|
import { HttpStatus, Response } from '../utils/Response';
|
|
@@ -22,7 +21,7 @@ export declare class Mocks {
|
|
|
22
21
|
};
|
|
23
22
|
clear: () => typeof jest;
|
|
24
23
|
impl: (f?: (...args: any[]) => any) => jest.Mock;
|
|
25
|
-
property: <T extends object, P extends
|
|
24
|
+
property: <T extends object, P extends jest.NonFunctionPropertyNames<Required<T>>>(object: T, getter: P, value: T[P]) => jest.SpyInstance;
|
|
26
25
|
reject: (value?: unknown) => jest.Mock;
|
|
27
26
|
rejectWith: <T = any>(props?: Partial<T>) => jest.Mock;
|
|
28
27
|
resolve: (value?: unknown) => jest.Mock;
|
package/dist/utils/Utils.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ 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;
|
|
6
6
|
export declare const isAn: <T>(t?: unknown, ...properties: (keyof T)[]) => t is T;
|
|
7
|
-
export declare const isArray: <T = any>(o?: unknown) => o is T
|
|
7
|
+
export declare const isArray: <T = any>(o?: unknown) => o is Array<T>;
|
|
8
8
|
export declare const isObject: (o?: unknown) => o is Record<string, unknown>;
|
|
9
9
|
export declare const asJson: (a?: unknown) => any;
|
|
10
10
|
export declare const asString: (a?: unknown) => string;
|