clientnode 3.0.904 → 3.0.905

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": "clientnode",
3
- "version": "3.0.904",
3
+ "version": "3.0.905",
4
4
  "description": "upgrade to object orientated rock solid plugins",
5
5
  "keywords": [
6
6
  "client",
@@ -65,7 +65,6 @@
65
65
  "@types/favicons": "*",
66
66
  "@types/html-minifier": "*",
67
67
  "@types/imagemin": "*",
68
- "@types/jest": "*",
69
68
  "@types/jquery": "*",
70
69
  "@types/node": "*",
71
70
  "@types/prop-types": "*",
package/testHelper.d.ts CHANGED
@@ -1,6 +1,4 @@
1
- /// <reference types="jest" />
2
- import { jest } from '@jest/globals';
3
- import { AnyFunction, FirstParameter, FunctionTestTuple, FunctionTestPromiseTuple, FunctionTestPromiseRejectionTuple, TestSymbol, ThenParameter, UnknownFunction } from './type';
1
+ import { AnyFunction, FirstParameter, FunctionTestTuple, FunctionTestPromiseTuple, FunctionTestPromiseRejectionTuple, TestMatchers as Matchers, TestSymbol, ThenParameter, UnknownFunction } from './type';
4
2
  export declare const DefinedSymbol: unique symbol;
5
3
  export declare const ThrowSymbol: unique symbol;
6
4
  export declare const UndefinedSymbol: unique symbol;
@@ -13,7 +11,7 @@ export declare const UndefinedSymbol: unique symbol;
13
11
  *
14
12
  * @returns Nothing.
15
13
  */
16
- export declare const testExpectedType: <Type = unknown>(givenResult: Type | jest.JestMatchers<Type>, expected: Type | TestSymbol, wrap?: boolean) => Promise<void> | void;
14
+ export declare const testExpectedType: <Type = unknown, Result extends void = void>(givenResult: Result | Matchers<Result>, expected: Type | TestSymbol, wrap?: boolean) => Result;
17
15
  /**
18
16
  * Tests each given test set (expected value follows by various list of
19
17
  * function parameters). It respects function signature to raise compile time
package/type.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  /// <reference types="node" />
2
2
  /// <reference types="webpack-env" />
3
+ import { Matchers } from 'expect';
3
4
  import { Dirent as DirectoryEntry, Stats as FileStats } from 'fs';
4
5
  import Tools, { BoundTools } from './index';
5
6
  import { DefinedSymbol, ThrowSymbol, UndefinedSymbol } from './testHelper';
@@ -32,6 +33,9 @@ export declare type RecursivePartial<Type> = Partial<Type> | {
32
33
  [Property in keyof Type]?: Type[Property] extends (infer OtherType)[] ? RecursivePartial<OtherType>[] : Type[Property] extends AnyFunction ? Partial<Type[Property]> : Type[Property] extends Mapping<unknown> ? RecursivePartial<Type[Property]> : Partial<Type[Property]>;
33
34
  };
34
35
  export declare type FileTraversionResult = false | null | Promise<false | null | void> | void;
36
+ export declare type TestMatchers<T extends void> = Matchers<T> & {
37
+ not: Matchers<T>;
38
+ };
35
39
  export declare type ImportFunction = (_id: string) => Promise<ReturnType<typeof require>>;
36
40
  export declare type HTMLItem = Comment | Document | HTMLElement | Text;
37
41
  export declare type Primitive = boolean | null | number | string | undefined;