Skip to content

[Bug]: Error.cause does not printed #15949

@MillerSvt

Description

@MillerSvt

Version

30.2.0

Steps to reproduce

Run this test:

it('test', () => {
    throw new Error('test', {cause: new Error('cause')})
})

Expected behavior

Error: test
<stack>
[cause]: Error: cause
<stack>

Actual behavior

Error: test
<stack>

Additional context

Related to: #13260, #11935

Environment

System:
    OS: macOS 26.2
    CPU: (10) arm64 Apple M1 Pro
  Binaries:
    npm: 10.9.3 - ~/Library/Application Support/JetBrains/IntelliJIdea2025.1/node/versions/22.18.0/bin/npm
    pnpm: 10.16.1 - ~/Library/pnpm/pnpm
  npmPackages:
    jest: 30.2.0 => 30.2.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions