@jest/types
Advanced tools
Comparing version 26.6.2 to 27.0.0-next.0
@@ -21,3 +21,3 @@ /** | ||
export declare type HookType = SharedHookType | 'afterEach' | 'beforeEach'; | ||
export declare type TestContext = Record<string, unknown>; | ||
export declare type TestContext = Global.TestContext; | ||
export declare type Exception = any; | ||
@@ -24,0 +24,0 @@ export declare type FormattedError = string; |
@@ -48,2 +48,3 @@ /** | ||
expand: boolean; | ||
extensionsToTreatAsEsm: Array<Path>; | ||
forceCoverageMatch: Array<Glob>; | ||
@@ -113,7 +114,3 @@ globals: ConfigGlobals; | ||
coverageReporters: CoverageReporters; | ||
coverageThreshold: { | ||
global: { | ||
[key: string]: number; | ||
}; | ||
}; | ||
coverageThreshold: CoverageThreshold; | ||
dependencyExtractor: string; | ||
@@ -124,2 +121,3 @@ detectLeaks: boolean; | ||
expand: boolean; | ||
extensionsToTreatAsEsm: Array<Path>; | ||
extraGlobals: Array<string>; | ||
@@ -240,7 +238,2 @@ filter: Path; | ||
detectOpenHandles: boolean; | ||
enabledTestsMap?: { | ||
[key: string]: { | ||
[key: string]: boolean; | ||
}; | ||
}; | ||
expand: boolean; | ||
@@ -304,2 +297,3 @@ filter?: Path; | ||
errorOnDeprecated: boolean; | ||
extensionsToTreatAsEsm: Array<Path>; | ||
extraGlobals: Array<keyof NodeJS.Global>; | ||
@@ -306,0 +300,0 @@ filter?: Path; |
@@ -9,6 +9,14 @@ /** | ||
import type { CoverageMapData } from 'istanbul-lib-coverage'; | ||
export declare type ValidTestReturnValues = void | undefined; | ||
declare type TestReturnValuePromise = Promise<unknown>; | ||
declare type TestReturnValueGenerator = Generator<void, unknown, void>; | ||
export declare type TestReturnValue = ValidTestReturnValues | TestReturnValuePromise; | ||
export declare type TestContext = Record<string, unknown>; | ||
export declare type DoneFn = (reason?: string | Error) => void; | ||
export declare type DoneTakingTestFn = (this: TestContext | undefined, done: DoneFn) => ValidTestReturnValues; | ||
export declare type PromiseReturningTestFn = (this: TestContext | undefined) => TestReturnValue; | ||
export declare type GeneratorReturningTestFn = (this: TestContext | undefined) => TestReturnValueGenerator; | ||
export declare type TestName = string; | ||
export declare type TestFn = (done?: DoneFn) => Promise<void | undefined | unknown> | void | undefined; | ||
export declare type ConcurrentTestFn = (done?: DoneFn) => Promise<void | undefined | unknown>; | ||
export declare type TestFn = PromiseReturningTestFn | GeneratorReturningTestFn | DoneTakingTestFn; | ||
export declare type ConcurrentTestFn = () => TestReturnValuePromise; | ||
export declare type BlockFn = () => void; | ||
@@ -15,0 +23,0 @@ export declare type BlockName = string; |
{ | ||
"name": "@jest/types", | ||
"version": "26.6.2", | ||
"version": "27.0.0-next.0", | ||
"repository": { | ||
@@ -10,7 +10,11 @@ "type": "git", | ||
"engines": { | ||
"node": ">= 10.14.2" | ||
"node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" | ||
}, | ||
"license": "MIT", | ||
"main": "build/index.js", | ||
"types": "build/index.d.ts", | ||
"main": "./build/index.js", | ||
"types": "./build/index.d.ts", | ||
"exports": { | ||
".": "./build/index.js", | ||
"./package.json": "./package.json" | ||
}, | ||
"dependencies": { | ||
@@ -26,3 +30,3 @@ "@types/istanbul-lib-coverage": "^2.0.0", | ||
}, | ||
"gitHead": "4c46930615602cbf983fb7e8e82884c282a624d5" | ||
"gitHead": "4f77c70602cab8419794f10fa39510f13baafef8" | ||
} |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
26253
775
2