Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use temp path to save diff image #548

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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
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.

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