Find and use full path to percy-healthcheck script #67
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The main change here is getting away from trying to rely on
node
to find the path to abin
we install, and instead try to compute the full path to thepercy-healthcheck
script ourselves, in a way similar to how we do that forpercy-agent.js
.This change also adds some additional logging that should help in the case when the healthcheck fails.
I did not succeed in doing a magic
npm link
before calling the tests, so that in the package tests we can rely on@percy/cypress
being installed, so I'm still falling back on the somewhat ugly option of manually copying stuff intonode_modules
before the tests run. Since this is just for development (for the tests in this package), I think that's ok.@Robdel12 @djones for review