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

Get mocha binary from npm bin #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Get mocha binary from npm bin #8

wants to merge 1 commit into from

Conversation

imurchie
Copy link
Collaborator

Since npm added deduplication of modules, if this package and the enclosing package have the same mocha version it will only exist in the outer node_modules, and so this module will not find it.

Rather than get the local mocha bin from this package's node_modules/.bin folder, find the npm bin folder in play, and get mocha from it.

To make sure there is a mocha there, add a peer dependency for it.

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.

1 participant