If screenshot-plugin
's multiple custom-presets are set, the output images will be overwritten.
#298
Closed
6 tasks done
Labels
to triage
This issue needs to be triaged
Describe the bug
When multiple presets are defined by the user, the captured and written file is overwritten in the next loop because file save is performed multiple times without changing the file name in the loop, as shown in the code in the reference link below.
So, we need to use the other name for saving in every loop.
Reproduction
https://github.com/histoire-dev/histoire/blob/main/packages/histoire-plugin-screenshot/src/index.ts#L67
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: