@abstractest/types
Advanced tools
Comparing version 0.0.0 to 0.1.0
{ | ||
"name": "@abstractest/types", | ||
"version": "0.0.0", | ||
"version": "0.1.0", | ||
"description": "abstractest types", | ||
@@ -28,3 +28,3 @@ "publishConfig": { | ||
"@abstractest/infra": "workspace:*", | ||
"@types/node": "^20.2.6" | ||
"@types/node": "^20.3.1" | ||
}, | ||
@@ -31,0 +31,0 @@ "files": [ |
// https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/node/test.d.ts | ||
import {FunctionLike, Mock, SpyOn, UnknownFunction} from './mock' | ||
import {Describe, Expect, Hook, It, Mocker} from '@abstractest/types' | ||
declare module '@abstractest/types' { | ||
@@ -38,2 +41,3 @@ export type Done = (result?: any) => void | ||
afterEach: Hook | ||
mock: Mocker | ||
} | ||
@@ -51,13 +55,21 @@ | ||
toEqual(val: any): void | ||
toHaveBeenCalled(): void | ||
toHaveBeenCalledTimes(n: number): void | ||
} | ||
global { | ||
const it: It | ||
const describe: Describe | ||
const expect: Expect | ||
const before: Hook | ||
const beforeEach: Hook | ||
const after: Hook | ||
const afterEach: Hook | ||
export type Mocker = { | ||
fn<T extends FunctionLike = UnknownFunction>(implementation?: T): Mock<T> | ||
spyOn: SpyOn | ||
} | ||
} | ||
declare global { | ||
const it: It | ||
const describe: Describe | ||
const expect: Expect | ||
const before: Hook | ||
const beforeEach: Hook | ||
const after: Hook | ||
const afterEach: Hook | ||
const mock: Mocker | ||
} |
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
11248
9
305
1