-
Notifications
You must be signed in to change notification settings - Fork 19
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
Add support for npm3 or dedupe #41
Comments
This has always been an issue - well before npm3. The default bin path can be overriden with the phantomjs option, found at the bottom of this section in the readme. I'm assuming you are suggesting that there should be a different default phantomjs location. I've a couple of questions on that implied suggestion:
Thanks in advance for any additional feedback you can supply. |
Simple |
Let's be more specific on what you are saying the change should be (So I'm certain I understand). Here's my attempt:
Easy enough, please confirm I got it right. |
Yes, you got it right. The code I posted at the top is actually working well in all these cases. Just remember to allow the user to alter this path anyway. |
OK, I have a release candidate that runs correctly on Linux. It also makes successful substitutions via the phantomjs option (this is how I run on Travis-CI). I noticed that this technique (you posted from above, the essence of the change) is only used by karma-phantomjs-launcher for win32. Can you please review (c2f5e28) the change and test your use case? Also, let me know your OS. I'll be spinning up a Mac test shortly. One way to test: Drop the RC in your package.json via |
I've confirmed working on mac, any feedback in your use case? |
Right now phantomjs bin path is hardcoded here
https://github.com/localnerve/html-snapshots/blob/master/lib/html-snapshots.js#L23
When
html-snapshots
is installed with npm3 (or dedupe was used), phantom is installed in different location. In my case this path would work'../../.bin/phantomjs'
, but you cannot assume that really.You may try your luck with this code from
karma-phantomjs-launcher
:The text was updated successfully, but these errors were encountered: