Skip to content

elpassion/error-paparazzi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

error-paparazzi

Usage

Make all your tests create and open a screenshot automatically after failing:

import { takeScreenshotOnTestError } from "@error-paparazzi/jest";

takeScreenshotOnTestError();

test("failing test", () => {
  expect(true).toBe(false);
});

Wrap single test in paparazzi:

import { paparazzi } from "@error-paparazzi/jest";

test("failing test", paparazzi(() => {
  expect(true).toBe(false);
}));

Explicitly trigger a screenshot whenever you want to:

import { screenshot } from "@error-paparazzi/jest";

test("failing test", () => {
  await screenshot();
  expect(true).toBe(false);
});

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published