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

Find and use full path to percy-healthcheck script #67

Merged
merged 2 commits into from
Mar 27, 2019

Conversation

anaulin
Copy link
Contributor

@anaulin anaulin commented Mar 27, 2019

The main change here is getting away from trying to rely on node to find the path to a bin we install, and instead try to compute the full path to the percy-healthcheck script ourselves, in a way similar to how we do that for percy-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 into node_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

@anaulin anaulin requested a review from djones March 27, 2019 21:14
lib/index.ts Show resolved Hide resolved
Copy link
Contributor

@Robdel12 Robdel12 left a comment

Choose a reason for hiding this comment

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

🏁 This looks good to me! I'd be interested in shipping this as a beta just to test & confirm with those who have this issue

@anaulin anaulin merged commit 8468123 into master Mar 27, 2019
@anaulin anaulin deleted the healthcheck-for-realz branch March 27, 2019 22:48
@djones
Copy link
Contributor

djones commented Mar 27, 2019

Shipped with @percy/cypress@1.0.4

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