Upgrading @types/jest 21 to 22
Unknown21.1.10 → 22.2.3
Fetching 11 releases from GitHub…0 / 11
UnknownUpgrade verdict
DepDelta is still reading the notes for this range, so breaking changes can't be ruled out yet.
In plain terms
- DepDelta is still reading the release notes in this range, so it can't rule out breaking changes yet.
- This page updates as the notes come in.
Must act Still reading release notes
DepDelta is still reading the release notes in this range. This updates as they come in.
API changes
Generated by DepDelta from published .d.ts files. Not mixed with prose notes.
- changed:
call jest.Describe(name: string, fn: EmptyFunction): void → call jest.Describe(name: number | string | Function | FunctionLike, fn: EmptyFunction): void - changed:
function jest.spyOn<T extends {}, M extends keyof T>(object: T, method: M): SpyInstance<T[M]> → function jest.spyOn<T extends {}, M extends keyof T>(object: T, method: M, accessType?: 'get' | 'set'): SpyInstance<T[M]> - changed:
function spyOn(object: any, method: string): jasmine.Spy → function spyOn<T>(object: T, method: keyof T): jasmine.Spy - changed:
method jest.Matchers.toHaveProperty(propertyPath: string, value?: any): R → method jest.Matchers.toHaveProperty(propertyPath: string | any[], value?: any): R - changed:
property jest.MatcherUtils.utils: { readonly EXPECTED_COLOR: string; readonly RECEIVED_COLOR: string; ensureActualIsNumber(actual: any, matcherName?: string): void; ensureExpectedIsNumber(actual: any, matcherName?: string): void; ensureNoExpected(actual: any, matcherName?: string): void; ensureNumbers(actual: any, expected: any, matcherName?: string): void; getType(value: any): string; matcherHin… → property jest.MatcherUtils.utils: { readonly EXPECTED_COLOR: (text: string) => string; readonly RECEIVED_COLOR: (text: string) => string; ensureActualIsNumber(actual: any, matcherName?: string): void; ensureExpectedIsNumber(actual: any, matcherName?: string): void; ensureNoExpected(actual: any, matcherName?: string): void; ensureNumbers(actual: any, expected: any, matcherName?: string): void; get… - added:
interface jest.FunctionLike - added:
method jest.MockInstance.getMockName(): string - added:
method jest.MockInstance.mockName(name: string): Mock<T> - added:
method jest.MockInstance.mockRejectedValue(value: any): Mock<T> - added:
method jest.MockInstance.mockRejectedValueOnce(value: any): Mock<T> - added:
method jest.MockInstance.mockResolvedValue(value: any): Mock<T> - added:
method jest.MockInstance.mockResolvedValueOnce(value: any): Mock<T> - added:
property jest.ProjectConfig.cwd: Path - added:
property jest.ProjectConfig.detectLeaks: boolean - added:
property jest.ProjectConfig.displayName: Maybe<string> - added:
property jest.ProjectConfig.forceCoverageMatch: Glob[] - added:
property jest.ProjectConfig.runner: string - added:
property jest.ProjectConfig.testEnvironmentOptions: object - added:
property jest.ProjectConfig.testLocationInResults: boolean - added:
property jest.ProjectConfig.watchPathIgnorePatterns: string[] - added:
readonly property jest.FunctionLike.name: string