@abstractest/types
Advanced tools
Comparing version
{ | ||
"name": "@abstractest/types", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"description": "abstractest types", | ||
@@ -28,3 +28,3 @@ "publishConfig": { | ||
"@abstractest/infra": "workspace:*", | ||
"@types/node": "^20.3.1" | ||
"@types/node": "^20.4.0" | ||
}, | ||
@@ -31,0 +31,0 @@ "files": [ |
@@ -52,6 +52,54 @@ // https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/node/test.d.ts | ||
export type Expect = (val: any) => { | ||
toEqual(val: any): void | ||
toHaveBeenCalled(): void | ||
toHaveBeenCalledTimes(n: number): void | ||
export type Expect = { | ||
any(val: any): any | ||
anything(): any | ||
arrayContaining(array: any[]): any | ||
arrayContaining(array: any[]): any | ||
closeTo(num: number, numDigits?: number): any | ||
objectContaining(object: any): any | ||
stringContaining(string: string): any | ||
stringMatching(value: string | RegExp): any | ||
not: { | ||
objectContaining(object: any): any | ||
stringContaining(string: string): any | ||
stringMatching(value: string | RegExp): any | ||
} | ||
(val: any): { | ||
toBe(value: any): void | ||
toHaveBeenCalled(): void | ||
toHaveBeenCalledTimes(count: number): void | ||
toHaveBeenCalledWith(...args: any[]): void | ||
toHaveBeenLastCalledWith(...args: any[]): void | ||
toHaveBeenNthCalledWith(index: number, ...args: any[]): void | ||
toHaveReturned(): void | ||
toHaveReturnedTimes(value: number): void | ||
toHaveReturnedWith(value: any): void | ||
toHaveLastReturnedWith(value: any): void | ||
toHaveNthReturnedWith(nthCall: number, value: any): void | ||
toHaveLength(len: number): void | ||
toHaveProperty(key: string, value?: any): void | ||
toBeCloseTo(value: number, numDigits?: number): void | ||
toBeDefined(): void | ||
toBeFalsy(): void | ||
toBeGreaterThan(value: number | bigint): void | ||
toBeGreaterThanOrEqual(value: number | bigint): void | ||
toBeLessThan(value: number | bigint): void | ||
toBeLessThanOrEqual(value: number | bigint): void | ||
toBeInstanceOf(constructor: any): void | ||
toBeNull(): void | ||
toBeTruthy(): void | ||
toBeUndefined(): void | ||
toBeNaN(): void | ||
toContain(item: any): void | ||
toContainEqual(item: any): void | ||
toEqual(value: any): void | ||
toMatch(value: RegExp | string): void | ||
toMatchObject(object: any): void | ||
toMatchSnapshot(propertyMatchers?: any, hint?: any): void | ||
toMatchInlineSnapshot(propertyMatchers?: any, inlineSnapshot?: any): void | ||
toStrictEqual(value: any): void | ||
toThrow(error?: any): void | ||
toThrowErrorMatchingSnapshot(hint?: any): void | ||
toThrowErrorMatchingInlineSnapshot(inlineSnapshot: any): void | ||
} | ||
} | ||
@@ -58,0 +106,0 @@ |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
13198
17.34%353
15.74%0
-100%