@types/jest
Advanced tools
Comparing version 26.0.15 to 26.0.24
@@ -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 | ||
*/ | ||
@@ -1054,4 +1055,2 @@ // tslint:disable-next-line: no-unnecessary-generics | ||
type Parameters<T extends (...args: any[]) => any> = T extends (...args: infer P) => any ? P : never; | ||
interface AsymmetricMatcher { | ||
@@ -1085,7 +1084,4 @@ asymmetricMatch(other: unknown): boolean; | ||
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> = Omit<T, 'resolves' | 'rejects' | 'not'>; | ||
type NonPromiseMatchers<T extends JestMatchersShape<any>> = Omit<T, 'resolves' | 'rejects' | 'not'>; | ||
type PromiseMatchers<T extends JestMatchersShape> = Omit<T['resolves'], 'not'>; | ||
@@ -1203,3 +1199,3 @@ | ||
*/ | ||
getMockImplementation(): (...args: Y) => T | undefined; | ||
getMockImplementation(): ((...args: Y) => T) | undefined; | ||
/** | ||
@@ -1206,0 +1202,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.15", | ||
"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": "b3cd189f33cef63f256a72fd8fe3bf961ad6649c77c5bd8a3023823a23411726", | ||
"typesPublisherContentHash": "a0a643015335ff74aff8f83ef2952bcc80a1de9559f77e2a8a5f662e98634d64", | ||
"typeScriptVersion": "3.8" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Tue, 20 Oct 2020 07:15:43 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). |
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
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
71673
0
1465