Skip to content

Need a way to get test status in afterEach() method #5292

@RudyLu

Description

@RudyLu

Do you want to request a feature or report a bug?
feature request.
What is the current behavior?
Cannot find a way to get test status in afterEach()

What is the expected behavior?
Need a way to get test status, like mocha can do this with this.currentTest.state.

Please provide your exact Jest configuration and mention your Jest, node,
yarn/npm version and operating system.

Jest 22.0.6

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions