Skip to content

test: cover asymmetric matcher failures with worker threads - #16211

Merged
SimenB merged 1 commit into
jestjs:mainfrom
KirtiRamchandani:fix/jest-worker-asymmetric-matcher-thread-test
Aug 8, 2026
Merged

SimenB merged 1 commit into
jestjs:mainfrom
KirtiRamchandani:fix/jest-worker-asymmetric-matcher-thread-test

Conversation

@KirtiRamchandani

Copy link
Copy Markdown
Contributor

Summary

Adds e2e regression coverage for #15078 using the reported expect.any(String) asymmetric matcher failure under both process workers and --workerThreads.

Current main already reports the real toEqual failure instead of a DataCloneError; this locks that behavior in the existing non-serializable inequality suite.

No changelog entry because this is test-only and does not change runtime behavior.

Test plan

  • yarn build:js
  • yarn jest e2e\__tests__\nonSerializableStructuresInequality.test.ts --runInBand -u
  • yarn jest e2e\__tests__\nonSerializableStructuresInequality.test.ts --runInBand
  • yarn eslint e2e\__tests__\nonSerializableStructuresInequality.test.ts
  • git diff --check

@linux-foundation-easycla

linux-foundation-easycla Bot commented May 24, 2026 •

Copy link
Copy Markdown

CLA Signed
The committers listed above are authorized under a signed CLA.

  • ✅ login: KirtiRamchandani / name: KirtiRamchandani (69611e0)

@netlify

netlify Bot commented May 24, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for jestjs ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 69611e0
🔍 Latest deploy log https://app.netlify.com/projects/jestjs/deploys/6a1347254e3b19000884f976
😎 Deploy Preview https://deploy-preview-16211--jestjs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@pkg-pr-new

pkg-pr-new Bot commented May 24, 2026

Copy link
Copy Markdown

Open in StackBlitz

babel-jest

npm i https://pkg.pr.new/babel-jest@16211

babel-plugin-jest-hoist

npm i https://pkg.pr.new/babel-plugin-jest-hoist@16211

babel-preset-jest

npm i https://pkg.pr.new/babel-preset-jest@16211

create-jest

npm i https://pkg.pr.new/create-jest@16211

@jest/diff-sequences

npm i https://pkg.pr.new/@jest/diff-sequences@16211

expect

npm i https://pkg.pr.new/expect@16211

@jest/expect-utils

npm i https://pkg.pr.new/@jest/expect-utils@16211

jest

npm i https://pkg.pr.new/jest@16211

jest-changed-files

npm i https://pkg.pr.new/jest-changed-files@16211

jest-circus

npm i https://pkg.pr.new/jest-circus@16211

jest-cli

npm i https://pkg.pr.new/jest-cli@16211

jest-config

npm i https://pkg.pr.new/jest-config@16211

@jest/console

npm i https://pkg.pr.new/@jest/console@16211

@jest/core

npm i https://pkg.pr.new/@jest/core@16211

@jest/create-cache-key-function

npm i https://pkg.pr.new/@jest/create-cache-key-function@16211

jest-diff

npm i https://pkg.pr.new/jest-diff@16211

jest-docblock

npm i https://pkg.pr.new/jest-docblock@16211

jest-each

npm i https://pkg.pr.new/jest-each@16211

@jest/environment

npm i https://pkg.pr.new/@jest/environment@16211

jest-environment-jsdom

npm i https://pkg.pr.new/jest-environment-jsdom@16211

@jest/environment-jsdom-abstract

npm i https://pkg.pr.new/@jest/environment-jsdom-abstract@16211

jest-environment-node

npm i https://pkg.pr.new/jest-environment-node@16211

@jest/expect

npm i https://pkg.pr.new/@jest/expect@16211

@jest/fake-timers

npm i https://pkg.pr.new/@jest/fake-timers@16211

@jest/get-type

npm i https://pkg.pr.new/@jest/get-type@16211

@jest/globals

npm i https://pkg.pr.new/@jest/globals@16211

jest-haste-map

npm i https://pkg.pr.new/jest-haste-map@16211

jest-jasmine2

npm i https://pkg.pr.new/jest-jasmine2@16211

jest-leak-detector

npm i https://pkg.pr.new/jest-leak-detector@16211

jest-matcher-utils

npm i https://pkg.pr.new/jest-matcher-utils@16211

jest-message-util

npm i https://pkg.pr.new/jest-message-util@16211

jest-mock

npm i https://pkg.pr.new/jest-mock@16211

@jest/pattern

npm i https://pkg.pr.new/@jest/pattern@16211

jest-phabricator

npm i https://pkg.pr.new/jest-phabricator@16211

jest-regex-util

npm i https://pkg.pr.new/jest-regex-util@16211

@jest/reporters

npm i https://pkg.pr.new/@jest/reporters@16211

jest-resolve

npm i https://pkg.pr.new/jest-resolve@16211

jest-resolve-dependencies

npm i https://pkg.pr.new/jest-resolve-dependencies@16211

jest-runner

npm i https://pkg.pr.new/jest-runner@16211

jest-runtime

npm i https://pkg.pr.new/jest-runtime@16211

@jest/schemas

npm i https://pkg.pr.new/@jest/schemas@16211

jest-snapshot

npm i https://pkg.pr.new/jest-snapshot@16211

@jest/snapshot-utils

npm i https://pkg.pr.new/@jest/snapshot-utils@16211

@jest/source-map

npm i https://pkg.pr.new/@jest/source-map@16211

@jest/test-result

npm i https://pkg.pr.new/@jest/test-result@16211

@jest/test-sequencer

npm i https://pkg.pr.new/@jest/test-sequencer@16211

@jest/transform

npm i https://pkg.pr.new/@jest/transform@16211

@jest/types

npm i https://pkg.pr.new/@jest/types@16211

jest-util

npm i https://pkg.pr.new/jest-util@16211

jest-validate

npm i https://pkg.pr.new/jest-validate@16211

jest-watcher

npm i https://pkg.pr.new/jest-watcher@16211

jest-worker

npm i https://pkg.pr.new/jest-worker@16211

pretty-format

npm i https://pkg.pr.new/pretty-format@16211

commit: 69611e0

@KirtiRamchandani

Copy link
Copy Markdown
Contributor Author

Thanks for the StackBlitz/pkg preview link.

@SimenB SimenB left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@SimenB
SimenB merged commit 5d2631a into jestjs:main Aug 8, 2026
92 checks passed
@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Sep 8, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants