Skip to content

Take screenshot when a test fails #131

Open
@gregberge

Description

@gregberge

As suggested in #43, we would like to have a screenshot when a test fail, it is the same idea as #130.

Technical detail

  • The screenshot would be created in a .jest-puppeteer/screenshots folder.
  • The name of the screenshot would be ${fileName}-${describe}-${it}-${timestamp}.png

We could redefine it and test but I think this is not the cleanest method. Any help from Jest team to do it properly is welcome @SimenB.

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