Socket
Socket
Sign inDemoInstall

@jest/types

Package Overview
Dependencies
Maintainers
7
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jest/types - npm Package Compare versions

Comparing version 26.6.2 to 27.0.0-next.0

2

build/Circus.d.ts

@@ -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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc