Skip to content

Upgrading @types/jest 20 to 21

Unknown20.0.8 → 21.1.10

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.

  • 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.
Still reading release notes

DepDelta is still reading the release notes in this range. This updates as they come in.

Generated by DepDelta from published .d.ts files. Not mixed with prose notes.

  • changed: function jasmine.createSpy(name: string, originalFn?: (...args: any[]) => any): Spy → function jasmine.createSpy(name?: string, originalFn?: (...args: any[]) => any): Spy
  • changed: index jest.ExpectExtendMap[key: string]: (this: MatcherUtils, received: any, actual: any) => { message(): string, pass: boolean } → index jest.ExpectExtendMap[key: string]: (this: MatcherUtils, received: any, ...actual: any[]) => { message(): string, pass: boolean }
  • changed: interface jest.Mock<T> extends Function, MockInstance<T> → interface jest.Mock<T = {}> extends Function, MockInstance<T>
  • changed: interface jest.SpyInstance<T> extends MockInstance<T> → interface jest.SpyInstance<T = {}> extends 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): CustomMatcherResult → method jasmine.CustomMatcher.compare<T>(actual: T, expected: T, ...args: any[]): CustomMatcherResult
  • changed: method jest.Matchers.toBeCloseTo(expected: number, delta?: number): R → method jest.Matchers.toBeCloseTo(expected: number, numDigits?: number): R
  • added: function jest.advanceTimersByTime(msToRun: number): typeof jest
  • added: function jest.restoreAllMocks(): typeof jest
  • added: function jest.setTimeout(timeout: number): typeof jest
  • added: interface jest.Set<T>
  • added: method jest.Expect.stringContaining(str: string): any
  • added: method jest.FakeTimers.advanceTimersByTime(msToRun: number): void