Socket
Socket
Sign inDemoInstall

@types/jest

Package Overview
Dependencies
Maintainers
1
Versions
208
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/jest - npm Package Compare versions

Comparing version 26.0.19 to 26.0.24

34

jest/index.d.ts

@@ -30,2 +30,3 @@ // Type definitions for Jest 26.0

// Regev Brody <https://github.com/regevbr>
// Alexandre Germain <https://github.com/gerkindev>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

@@ -190,3 +191,3 @@ // Minimum TypeScript Version: 3.8

// tslint:disable-next-line: no-unnecessary-generics
function requireActual<TModule = any>(moduleName: string): TModule;
function requireActual<TModule extends {} = any>(moduleName: string): TModule;
/**

@@ -197,3 +198,3 @@ * Returns a mock module instead of the actual module, bypassing all checks

// tslint:disable-next-line: no-unnecessary-generics
function requireMock<TModule = any>(moduleName: string): TModule;
function requireMock<TModule extends {} = any>(moduleName: string): TModule;
/**

@@ -324,3 +325,3 @@ * Resets the module registry - the cache of all required modules. This is

interface MockOptions {
virtual?: boolean;
virtual?: boolean | undefined;
}

@@ -458,10 +459,10 @@

interface MatcherHintOptions {
comment?: string;
expectedColor?: MatcherHintColor;
isDirectExpectCall?: boolean;
isNot?: boolean;
promise?: string;
receivedColor?: MatcherHintColor;
secondArgument?: string;
secondArgumentColor?: MatcherHintColor;
comment?: string | undefined;
expectedColor?: MatcherHintColor | undefined;
isDirectExpectCall?: boolean | undefined;
isNot?: boolean | undefined;
promise?: string | undefined;
receivedColor?: MatcherHintColor | undefined;
secondArgument?: string | undefined;
secondArgumentColor?: MatcherHintColor | undefined;
}

@@ -600,3 +601,3 @@

expectedAssertionsNumber: number;
isExpectingAssertions?: boolean;
isExpectingAssertions?: boolean | undefined;
suppressedErrors: Error[];

@@ -978,3 +979,3 @@ testPath: string;

*
* expect(desiredHouse).toMatchObject<House>(...standardHouse, kitchen: {area: 20}) // wherein standardHouse is some base object of type House
* expect(desiredHouse).toMatchObject<House>({...standardHouse, kitchen: {area: 20}}) // wherein standardHouse is some base object of type House
*/

@@ -1082,6 +1083,3 @@ // tslint:disable-next-line: no-unnecessary-generics

ExtendedExpectFunction<TMatchers>;
/**
* Construct a type with the properties of T except for those in type K.
*/
type Omit<T, K extends keyof any> = Pick<T, Exclude<keyof T, K>>;
type NonPromiseMatchers<T extends JestMatchersShape<any>> = Omit<T, 'resolves' | 'rejects' | 'not'>;

@@ -1200,3 +1198,3 @@ type PromiseMatchers<T extends JestMatchersShape> = Omit<T['resolves'], 'not'>;

*/
getMockImplementation(): (...args: Y) => T | undefined;
getMockImplementation(): ((...args: Y) => T) | undefined;
/**

@@ -1203,0 +1201,0 @@ * Accepts a function that should be used as the implementation of the mock. The mock itself will still record

{
"name": "@types/jest",
"version": "26.0.19",
"version": "26.0.24",
"description": "TypeScript definitions for Jest",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jest",
"license": "MIT",

@@ -136,2 +137,7 @@ "contributors": [

"githubUsername": "regevbr"
},
{
"name": "Alexandre Germain",
"url": "https://github.com/gerkindev",
"githubUsername": "gerkindev"
}

@@ -151,4 +157,4 @@ ],

},
"typesPublisherContentHash": "9c614362fdae055982ddc1ec8ad301e1487417327bdbb6ea1ff078aea83b81b9",
"typesPublisherContentHash": "a0a643015335ff74aff8f83ef2952bcc80a1de9559f77e2a8a5f662e98634d64",
"typeScriptVersion": "3.8"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Thu, 10 Dec 2020 22:33:57 GMT
* Last updated: Tue, 06 Jul 2021 21:33:43 GMT
* Dependencies: [@types/jest-diff](https://npmjs.com/package/@types/jest-diff), [@types/pretty-format](https://npmjs.com/package/@types/pretty-format)

@@ -18,2 +18,2 @@ * Global values: `afterAll`, `afterEach`, `beforeAll`, `beforeEach`, `describe`, `expect`, `fail`, `fdescribe`, `fit`, `it`, `jasmine`, `jest`, `pending`, `spyOn`, `test`, `xdescribe`, `xit`, `xtest`

These definitions were written by [Asana (https://asana.com)
// Ivo Stratev](https://github.com/NoHomey), [jwbay](https://github.com/jwbay), [Alexey Svetliakov](https://github.com/asvetliakov), [Alex Jover Morales](https://github.com/alexjoverm), [Allan Lukwago](https://github.com/epicallan), [Ika](https://github.com/ikatyang), [Waseem Dahman](https://github.com/wsmd), [Jamie Mason](https://github.com/JamieMason), [Douglas Duteil](https://github.com/douglasduteil), [Ahn](https://github.com/ahnpnl), [Josh Goldberg](https://github.com/joshuakgoldberg), [Jeff Lau](https://github.com/UselessPickles), [Andrew Makarov](https://github.com/r3nya), [Martin Hochel](https://github.com/hotell), [Sebastian Sebald](https://github.com/sebald), [Andy](https://github.com/andys8), [Antoine Brault](https://github.com/antoinebrault), [Gregor Stamać](https://github.com/gstamac), [ExE Boss](https://github.com/ExE-Boss), [Alex Bolenok](https://github.com/quassnoi), [Mario Beltrán Alarcón](https://github.com/Belco90), [Tony Hallett](https://github.com/tonyhallett), [Jason Yu](https://github.com/ycmjason), [Devansh Jethmalani](https://github.com/devanshj), [Pawel Fajfer](https://github.com/pawfa), and [Regev Brody](https://github.com/regevbr).
// Ivo Stratev](https://github.com/NoHomey), [jwbay](https://github.com/jwbay), [Alexey Svetliakov](https://github.com/asvetliakov), [Alex Jover Morales](https://github.com/alexjoverm), [Allan Lukwago](https://github.com/epicallan), [Ika](https://github.com/ikatyang), [Waseem Dahman](https://github.com/wsmd), [Jamie Mason](https://github.com/JamieMason), [Douglas Duteil](https://github.com/douglasduteil), [Ahn](https://github.com/ahnpnl), [Josh Goldberg](https://github.com/joshuakgoldberg), [Jeff Lau](https://github.com/UselessPickles), [Andrew Makarov](https://github.com/r3nya), [Martin Hochel](https://github.com/hotell), [Sebastian Sebald](https://github.com/sebald), [Andy](https://github.com/andys8), [Antoine Brault](https://github.com/antoinebrault), [Gregor Stamać](https://github.com/gstamac), [ExE Boss](https://github.com/ExE-Boss), [Alex Bolenok](https://github.com/quassnoi), [Mario Beltrán Alarcón](https://github.com/Belco90), [Tony Hallett](https://github.com/tonyhallett), [Jason Yu](https://github.com/ycmjason), [Devansh Jethmalani](https://github.com/devanshj), [Pawel Fajfer](https://github.com/pawfa), [Regev Brody](https://github.com/regevbr), and [Alexandre Germain](https://github.com/gerkindev).
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