Skip to content

[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

Merged

Conversation

jpmschuler
Copy link
Contributor

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.

Copy link

@davidfou davidfou left a 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) {

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

Copy link
Member

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@puneet0191 puneet0191 changed the base branch from master to 1.9.5 October 28, 2021 05:35
@puneet0191 puneet0191 merged commit 774ecd1 into codeceptjs:1.9.5 Nov 2, 2021
puneet0191 added a commit that referenced this pull request Nov 6, 2021
* 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]>
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.

3 participants