Skip to content

Conversation

@shtyr-maxim
Copy link

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

@sipayRT
Copy link
Member

sipayRT commented May 31, 2024

hi

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

@shtyr-maxim shtyr-maxim force-pushed the fix-diff-images-saving branch from 8350e01 to b77dcf2 Compare July 4, 2024 10:43
@shtyr-maxim
Copy link
Author

shtyr-maxim commented Jul 4, 2024

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.

@shadowusr shadowusr force-pushed the fix-diff-images-saving branch from 412d940 to fb6b628 Compare August 15, 2024 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants