---
title: "expect 30.5.0 Breaking Changes on npm | Since.dev"
description: "What each expect release removed, renamed or changed: 6 breaking changes in 1 version on npm, each with its source."
canonical_url: https://since.dev/packages/npm/expect
last_updated: 2026-12-04
---

# expect breaking changes

expect 30.5.0 (August 28, 2026) is its newest release with breaking changes, 6 of them. The first: Behavior changed module.register. Every breaking API change we have recorded in expect on npm: 6 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `30.5.2`, released September 18, 2026. [Source repository](https://github.com/jestjs/jest)

Packages on npm run on Node.js. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

## expect 30.5.0 breaking changes

expect 30.5.0, released August 28, 2026: 6 breaking changes.

- **Behavior changed** `module.register`  

Calling module.register() inside a test now throws an error instead of silently attaching hooks to the wrong loader. [github.com](https://github.com/jestjs/jest/releases/tag/v30.5.0)
- **Behavior changed** `module.registerHooks`  

Calling module.registerHooks() inside a test now throws an error instead of silently attaching hooks to the wrong loader. [github.com](https://github.com/jestjs/jest/releases/tag/v30.5.0)
- **Configuration changed** `moduleFileExtensions`  

Watched files are matched on their full extension, so moduleFileExtensions: \['js'\] no longer accepts foo.mjs. [github.com](https://github.com/jestjs/jest/releases/tag/v30.5.0)
- **Signature changed** `AsymmetricMatchers.objectContaining`  

Was objectContaining(sample: Record\<string, unknown>): AsymmetricMatcher_2; now objectContaining(sample: object): AsymmetricMatcher_2. [npmjs.com](https://www.npmjs.com/package/expect/v/30.5.0)
- **Signature changed** `ExpectationResult`  

Was type ExpectationResult = | SyncExpectationResult | AsyncExpectationResult; now type ExpectationResult = SyncExpectationResult | AsyncExpectationResult. [npmjs.com](https://www.npmjs.com/package/expect/v/30.5.0)
- **Signature changed** `Matchers.toMatchObject`  

Was toMatchObject(expected: Record\<string, unknown> | Array\<Record\<string, unknown>>): R; now toMatchObject(expected: object | Array\<object>): R. [npmjs.com](https://www.npmjs.com/package/expect/v/30.5.0)

## Related packages

- [jest](https://since.dev/packages/npm/jest.md)
- [jest-resolve](https://since.dev/packages/npm/jest-resolve.md)
- [@jest/globals](https://since.dev/packages/npm/@jest/globals.md)
- [jest-environment-jsdom](https://since.dev/packages/npm/jest-environment-jsdom.md)
- [jest-environment-node](https://since.dev/packages/npm/jest-environment-node.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
