Skip to content

Refactor isNodeJSErrnoException function #4303

Closed
@jsjoeio

Description

@jsjoeio

After a long discussion here, we came to the realization that there's a bug inside Jest which affects our function isNodeJSErrnoException.

$ node -e 'try { fs.readFileSync("/") } catch (error) { console.log(error instanceof Error) }'
true

References:

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions