@thisisagile/easy-test 17.4.1 → 17.4.2

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.
@@ -1,4 +1,3 @@
1
- /// <reference types="jest" />
2
1
  type ToMessage<S> = string | ((s: S[]) => string);
3
2
  declare class Check<S> {
4
3
  private ctx;
@@ -1,4 +1,3 @@
1
- /// <reference types="jest" />
2
1
  import { Message } from '../utils/Types';
3
2
  export declare class Match<S> {
4
3
  private readonly subject;
@@ -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;
@@ -1,4 +1,3 @@
1
- /// <reference types="jest" />
2
1
  export declare function toMatchArray(this: jest.MatcherContext, received: any[], expected: any[]): jest.CustomMatcherResult;
3
2
  declare global {
4
3
  namespace jest {
@@ -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 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;
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;
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thisisagile/easy-test",
3
- "version": "17.4.1",
3
+ "version": "17.4.2",
4
4
  "description": "Straightforward library for testing microservices built with @thisisagile/easy",
5
5
  "author": "Sander Hoogendoorn",
6
6
  "license": "MIT",