Skip to content

Upgrading @types/jest 29 to 30

Unknown29.5.14 → 30.0.0

UnknownUpgrade verdict

DepDelta hasn't looked for this range's notes yet, so breaking changes can't be ruled out.

  • DepDelta hasn't finished looking for the notes in this range, so it can't rule out breaking changes yet.
Unknown for releases without notes

Releases without notes may still need changes. Check their commits before upgrading.

Installs 42 packages in all (was 43).

Also installs @jest/diff-sequences, @jest/get-type, @jest/pattern, jest-mock, jest-regex-util.

No longer installs braces, diff-sequences, fill-range, is-number, jest-get-type, micromatch, to-regex-range.

Moves @jest/expect-utils 29.7.0 → 30.5.2, @jest/schemas 29.6.3 → 30.5.0, @jest/types 29.6.3 → 30.5.1, @sinclair/typebox 0.27.12 → 0.34.52, ci-info 3.9.0 → 4.4.0, expect 29.7.0 → 30.5.2, jest-diff 29.7.0 → 30.5.2, jest-matcher-utils 29.7.0 → 30.5.2, jest-message-util 29.7.0 → 30.5.1, jest-util 29.7.0 → 30.5.1, picomatch 2.3.2 → 4.0.7, pretty-format 29.7.0 → 30.5.1, react-is 18.3.1 → 18.3.1, 19.3.1. Your build may pick other versions.

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

  • removed: function jest.genMockFromModule<T>(moduleName: string): T
  • removed: method jest.Matchers.lastCalledWith<E extends any[]>(...args: E): R
  • removed: method jest.Matchers.lastReturnedWith<E = any>(expected?: E): R
  • removed: method jest.Matchers.nthCalledWith<E extends any[]>(nthCall: number, ...params: E): R
  • removed: method jest.Matchers.nthReturnedWith<E = any>(n: number, expected?: E): R
  • removed: method jest.Matchers.toBeCalled(): R
  • removed: method jest.Matchers.toBeCalledTimes(expected: number): R
  • removed: method jest.Matchers.toBeCalledWith<E extends any[]>(...args: E): R
  • removed: method jest.Matchers.toReturn(): R
  • removed: method jest.Matchers.toReturnTimes(count: number): R
  • removed: method jest.Matchers.toReturnWith<E = any>(value?: E): R
  • removed: method jest.Matchers.toThrowError(error?: string | Constructable | RegExp | Error): R
  • changed: function jest.retryTimes(numRetries: number, options?: { logErrorsBeforeRetry?: boolean }): typeof jest → function jest.retryTimes(numRetries: number, options?: { logErrorsBeforeRetry?: boolean; waitBeforeRetry?: number; retryImmediately?: boolean }): typeof jest
  • added: function jest.advanceTimersToNextFrame(): void
  • added: function jest.onGenerateMock<T>(cb: (modulePath: string, moduleMock: T) => T): typeof jest
  • added: function jest.unstable_unmockModule(moduleName: string): typeof jest
  • added: method jest.Expect.arrayOf<E = any>(arr: E): any
  • added: method jest.InverseAsymmetricMatchers.arrayOf<E = any>(arr: E): any