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
On this page
Latest version 30.5.2, released September 18, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
expect 30.5.0 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 - 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 - Configuration changed
moduleFileExtensions
Watched files are matched on their full extension, so moduleFileExtensions: ['js'] no longer accepts foo.mjs. github.com - Signature changed
AsymmetricMatchers.objectContaining
Was objectContaining(sample: Record<string, unknown>): AsymmetricMatcher_2; now objectContaining(sample: object): AsymmetricMatcher_2. npmjs.com - Signature changed
ExpectationResult
Was type ExpectationResult = | SyncExpectationResult | AsyncExpectationResult; now type ExpectationResult = SyncExpectationResult | AsyncExpectationResult. npmjs.com - Signature changed
Matchers.toMatchObject
Was toMatchObject(expected: Record<string, unknown> | Array<Record<string, unknown>>): R; now toMatchObject(expected: object | Array<object>): R. npmjs.com
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The 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.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.