@jest/types
Advanced tools
Comparing version 26.3.0 to 26.5.0
@@ -21,3 +21,3 @@ /** | ||
export declare type HookType = SharedHookType | 'afterEach' | 'beforeEach'; | ||
export declare type TestContext = Record<string, any>; | ||
export declare type TestContext = Record<string, unknown>; | ||
export declare type Exception = any; | ||
@@ -147,3 +147,3 @@ export declare type FormattedError = string; | ||
uncaughtException: Array<(exception: Exception) => void>; | ||
unhandledRejection: Array<(exception: Exception, promise: Promise<any>) => void>; | ||
unhandledRejection: Array<(exception: Exception, promise: Promise<unknown>) => void>; | ||
}; | ||
@@ -150,0 +150,0 @@ export declare type State = { |
@@ -45,2 +45,3 @@ /** | ||
haste: HasteConfig; | ||
injectGlobals: boolean; | ||
maxConcurrency: number; | ||
@@ -68,3 +69,3 @@ maxWorkers: number | string; | ||
testEnvironment: string; | ||
testEnvironmentOptions: Record<string, any>; | ||
testEnvironmentOptions: Record<string, unknown>; | ||
testFailureExitCode: string | number; | ||
@@ -127,2 +128,3 @@ testLocationInResults: boolean; | ||
haste: HasteConfig; | ||
injectGlobals: boolean; | ||
reporters: Array<string | ReporterConfig>; | ||
@@ -175,3 +177,3 @@ logHeapUsage: boolean; | ||
testEnvironment: string; | ||
testEnvironmentOptions: Record<string, any>; | ||
testEnvironmentOptions: Record<string, unknown>; | ||
testFailureExitCode: string | number; | ||
@@ -202,3 +204,3 @@ testLocationInResults: boolean; | ||
watchman: boolean; | ||
watchPlugins: Array<string | [string, Record<string, any>]>; | ||
watchPlugins: Array<string | [string, Record<string, unknown>]>; | ||
}>; | ||
@@ -281,3 +283,3 @@ export declare type SnapshotUpdateState = 'all' | 'new' | 'none'; | ||
path: string; | ||
config: Record<string, any>; | ||
config: Record<string, unknown>; | ||
}> | null; | ||
@@ -304,2 +306,3 @@ }; | ||
haste: HasteConfig; | ||
injectGlobals: boolean; | ||
moduleDirectories: Array<string>; | ||
@@ -328,3 +331,3 @@ moduleFileExtensions: Array<string>; | ||
testEnvironment: string; | ||
testEnvironmentOptions: Record<string, any>; | ||
testEnvironmentOptions: Record<string, unknown>; | ||
testMatch: Array<Glob>; | ||
@@ -374,2 +377,3 @@ testLocationInResults: boolean; | ||
init: boolean; | ||
injectGlobals: boolean; | ||
json: boolean; | ||
@@ -376,0 +380,0 @@ lastCommit: boolean; |
@@ -27,5 +27,8 @@ /** | ||
_DEFAULT_TIMEOUT_INTERVAL?: number; | ||
addMatchers: Function; | ||
addMatchers: (matchers: Record<string, unknown>) => void; | ||
}; | ||
declare type Each<EachCallback extends TestCallback> = ((table: EachTable, ...taggedTemplateData: Array<unknown>) => (title: string, test: EachTestFn<EachCallback>, timeout?: number) => void) | (() => void); | ||
declare type Each<EachCallback extends TestCallback> = ((table: EachTable, ...taggedTemplateData: Array<unknown>) => (title: string, test: EachTestFn<EachCallback>, timeout?: number) => void) | (() => () => void); | ||
export interface HookBase { | ||
(fn: HookFn, timeout?: number): void; | ||
} | ||
export interface ItBase { | ||
@@ -38,3 +41,3 @@ (testName: TestName, fn: TestFn, timeout?: number): void; | ||
skip: ItBase; | ||
todo: (testName: TestName, ...rest: Array<any>) => void; | ||
todo: (testName: TestName) => void; | ||
} | ||
@@ -71,6 +74,6 @@ export interface ItConcurrentBase { | ||
fdescribe: DescribeBase; | ||
beforeAll: HookFn; | ||
beforeEach: HookFn; | ||
afterEach: HookFn; | ||
afterAll: HookFn; | ||
beforeAll: HookBase; | ||
beforeEach: HookBase; | ||
afterEach: HookBase; | ||
afterAll: HookBase; | ||
} | ||
@@ -86,4 +89,4 @@ export interface GlobalAdditions extends TestFrameworkGlobals { | ||
export interface Global extends GlobalAdditions, Omit<NodeJS.Global, keyof GlobalAdditions> { | ||
[extras: string]: any; | ||
[extras: string]: unknown; | ||
} | ||
export {}; |
{ | ||
"name": "@jest/types", | ||
"version": "26.3.0", | ||
"version": "26.5.0", | ||
"repository": { | ||
@@ -25,3 +25,3 @@ "type": "git", | ||
}, | ||
"gitHead": "3a7e06fe855515a848241bb06a6f6e117847443d" | ||
"gitHead": "68d1b1b638bc7464c2794a957c1b894de7da2ee3" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25083
761