jestjs / jest

Delightful JavaScript Testing.
https://jestjs.io
MIT License
44.19k stars 6.46k forks source link

very different error messages on macOS and Ubuntu, and macOS's is not useful #11658

Closed JounQin closed 1 year ago

JounQin commented 3 years ago

🐛 Bug Report

macOS: The whole test fails

FAIL test/remark.test.ts
  ● Test suite failed to run

    TypeError: Converting circular structure to JSON
        --> starting at object with constructor 'Object'
        |     property 'name' -> object with constructor 'Object'
        --- property 'parent' closes the circle
        at stringify (<anonymous>)

      at messageParent (node_modules/jest-worker/build/workers/messageParent.js:42:19)

Ubuntu: Only a single test case fails, expected

To Reproduce

Steps to reproduce the behavior:

clone https://github.com/mdx-js/eslint-mdx/tree/chore/eslint_types

branch: chore/eslint_types

just run yarn test

Expected behavior

macOS should only fail on the single test case as same as Ubuntu

Link to repl or repo (highly encouraged)

macOS: https://github.com/mdx-js/eslint-mdx/runs/3052361988?check_suite_focus=true#step:8:31 Ubuntu: https://github.com/mdx-js/eslint-mdx/runs/3052362005?check_suite_focus=true#step:8:30

envinfo

  System:
    OS: macOS 12.0
    CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
  Binaries:
    Node: 12.22.1 - ~/.nvm/versions/node/v12.22.1/bin/node
    Yarn: 1.22.10 - /usr/local/bin/yarn
    npm: 7.18.1 - ~/.nvm/versions/node/v12.22.1/bin/npm
npwork commented 2 years ago

May be related to https://github.com/facebook/jest/issues/11958

github-actions[bot] commented 1 year ago

This issue is stale because it has been open for 1 year with no activity. Remove stale label or comment or this will be closed in 30 days.

github-actions[bot] commented 1 year ago

This issue was closed because it has been stalled for 30 days with no activity. Please open a new issue if the issue is still relevant, linking to this one.

github-actions[bot] commented 1 year ago

This issue 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.