-
Notifications
You must be signed in to change notification settings - Fork 54
[TASK] fix relative paths for Mochawesome context screenshots #97
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
[TASK] fix relative paths for Mochawesome context screenshots #97
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for proposing a fix! I have the same problem and I was happy to see someone proposed a solution already.
I'm not a maintainer of the library, feel free to ignore my review
index.js
Outdated
@@ -29,6 +30,23 @@ class ResembleHelper extends Helper { | |||
return folderPath; | |||
} | |||
|
|||
resolveRelativePath(folderPath) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion: I don't think this function is meant to be public, that's why given how this file is written, it might be great to prepend a _
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jpmschuler could you please make the change @davidfou suggested, they are right.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
* Fixed optional param in JSDoc and generated TS definition (#99) * [TASK] fix relative paths for Mochawesome context screenshots (#97) * [TASK] fix relative paths for Mochawesome context screenshots * [TASK] improve relative path generation for cases where report is not in default folder * [TASK] switch to Path.relative * [TASK] add more pessimistic check for undefined options * [TASK] resolveRelativePath should not be public * [FEATURE] allow resemble.compare even if dimensions are not the same (#96) * [FEATURE] allow resemble.compare even if dimensions are not the same \n\nsee #94 * fix default value overriding custom value "false" * Update Version, Prepare for release. Co-authored-by: Jaromir Obr <[email protected]> Co-authored-by: jpmschuler <[email protected]>
see #95
I really just changed the Mochaweseome calls, couldn't figure how to fix the .json, too. But this way no harm done and no regressions to expect.