html-reporter icon indicating copy to clipboard operation
html-reporter copied to clipboard

fix: use temp path to save diff image

Open shtyr-maxim opened this issue 1 year ago • 2 comments

This pull request fixes the error of storing diff images in the project's working directory.

Expected behavior

The difference image is saved in $TMPDIR/... path before copying to reportPath

Actual behavior

The difference image is saved in $PWD/images/... before copying to reportPath

shtyr-maxim avatar May 23 '24 09:05 shtyr-maxim

hi

thx for your PR. can you, pls, provide an example to reproduce this bug?

sipayRT avatar May 31 '24 12:05 sipayRT

Hi!

I've created a minimal environment to demonstrate this issue. You can find it here: html-reporter-bug.zip.

After running the npm test command, a new folder called "images" will be created in a project directory.

shtyr-maxim avatar Jul 04 '24 10:07 shtyr-maxim