Upgrading @types/jest 16 to 18
Unknown16.0.14 → 18.1.1
Fetching 3 releases from GitHub…0 / 3
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.
- removed:
function expect(actual: any): jest.Matchers - removed:
method jest.Mock.mockClear(): void - removed:
method jest.Mock.mockImplementation(fn: Function): Mock<T> - removed:
method jest.Mock.mockImplementationOnce(fn: Function): Mock<T> - removed:
method jest.Mock.mockReset(): void - removed:
method jest.Mock.mockReturnThis(): Mock<T> - removed:
method jest.Mock.mockReturnValue(value: any): Mock<T> - removed:
method jest.Mock.mockReturnValueOnce(value: any): Mock<T> - removed:
property jest.Mock.mock: MockContext<T> - changed:
call jasmine.CustomMatcherFactory(util: MatchersUtil, customEqualityTesters: CustomEqualityTester[]): CustomMatcher → call jasmine.CustomMatcherFactory(util: MatchersUtil, customEqualityTesters: Array<CustomEqualityTester>): CustomMatcher - changed:
function jest.doMock(moduleName: string, factory?: () => any, options?: MockOptions): typeof jest → function jest.doMock(moduleName: string): typeof jest - changed:
function jest.mock(moduleName: string, factory?: () => any, options?: MockOptions): typeof jest → function jest.mock(moduleName: string, factory?: any, options?: MockOptions): typeof jest - changed:
interface jest.Mock<T> extends Function → interface jest.Mock<T> extends Function, MockInstance<T> - changed:
method jasmine.CustomMatcher.compare(actual: any, ...expected: any[]): CustomMatcherResult → method jasmine.CustomMatcher.compare(actual: any, expected: any): CustomMatcherResult - changed:
method jasmine.CustomMatcher.compare<T>(actual: T, expected: T, ...args: any[]): CustomMatcherResult → method jasmine.CustomMatcher.compare<T>(actual: T, expected: T): CustomMatcherResult - changed:
method jasmine.MatchersUtil.buildFailureMessage(matcherName: string, isNot: boolean, actual: any, ...expected: any[]): string → method jasmine.MatchersUtil.buildFailureMessage(matcherName: string, isNot: boolean, actual: any, ...expected: Array<any>): string - changed:
method jasmine.MatchersUtil.contains<T>(haystack: ArrayLike<T> | string, needle: any, customTesters?: CustomEqualityTester[]): boolean → method jasmine.MatchersUtil.contains<T>(haystack: ArrayLike<T> | string, needle: any, customTesters?: Array<CustomEqualityTester>): boolean - changed:
method jasmine.MatchersUtil.equals(a: any, b: any, customTesters?: CustomEqualityTester[]): boolean → method jasmine.MatchersUtil.equals(a: any, b: any, customTesters?: Array<CustomEqualityTester>): boolean - changed:
method jest.Matchers.toBeCloseTo(expected: number, delta: number): void → method jest.Matchers.toBeCloseTo(expected: number, delta?: number): void - changed:
method jest.Matchers.toMatchSnapshot(): void → method jest.Matchers.toMatchSnapshot(snapshotName?: string): void - changed:
property jest.MockOptions.virtual?: boolean | undefined → property jest.MockOptions.virtual?: boolean - added:
call jest.Expect(actual: any): Matchers - added:
const expect: jest.Expect - added:
function jest.fn<T extends {}>(implementation: (...args: any[]) => T): Mock<T> - added:
function jest.resetAllMocks(): typeof jest - added:
index jest.ExpectExtendMap[key: string]: (this: MatcherUtils, received: any, actual: any) => { message: () => string, pass: boolean } - added:
interface jest.Expect - added:
interface jest.ExpectExtendMap - added:
interface jest.MatcherUtils - added:
interface jest.MockInstance<T> - added:
method jest.Expect.any(classType: any): void - added:
method jest.Expect.anything(): void - added:
method jest.Expect.arrayContaining(arr: any[]): void - added:
method jest.Expect.assertions(num: number): void - added:
method jest.Expect.extend(obj: ExpectExtendMap): void - added:
method jest.Expect.objectContaining(obj: {}): void - added:
method jest.Expect.stringMatching(str: string | RegExp): void - added:
method jest.Matchers.toHaveLength(expected: number): void - added:
method jest.Matchers.toHaveProperty(propertyPath: string, value?: any): void - added:
method jest.MockInstance.mockClear(): void - added:
method jest.MockInstance.mockImplementation(fn: Function): Mock<T> - added:
method jest.MockInstance.mockImplementationOnce(fn: Function): Mock<T> - added:
method jest.MockInstance.mockReset(): void - added:
method jest.MockInstance.mockReturnThis(): Mock<T> - added:
method jest.MockInstance.mockReturnValue(value: any): Mock<T> - added:
method jest.MockInstance.mockReturnValueOnce(value: any): Mock<T> - added:
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… - added:
property jest.MockInstance.mock: MockContext<T> - added:
readonly property jest.MatcherUtils.isNot: boolean - added:
type jest.Mocked<T> = { [P in keyof T]: T[P] & MockInstance<T[P]> } & T