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

Fix karma tests #26

Merged
merged 2 commits into from
Jul 12, 2016
Merged

Fix karma tests #26

merged 2 commits into from
Jul 12, 2016

Conversation

CMTegner
Copy link
Contributor

Fixes problem detailed in #25.

Karma's implicit plugin import apparently doesn't always work, but the workaround was to simply list the plugins explicitly in karma.conf.js.

Similarly the karma-phantomjs-launcher plugin couldn't find the phantomjs module. Turns out the plugin had phantomjs listed as a peer-dependency, but rackt-cli didn't fullfill this requirement. I don't see how this ever worked, unless the user had phantomjs installed globally. The solution was to bump karma-phantomjs-launcher to a newer version which has phantomjs-prebuilt as a direct dependency.

I successfully ran npm test in react-flipcard with these changes (after fixing the lint errors).

@mzabriskie mzabriskie merged commit abfe8ab into mzabriskie:master Jul 12, 2016
@mzabriskie
Copy link
Owner

Nice fix. Thanks!

@CMTegner
Copy link
Contributor Author

No problem! :)

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.

2 participants