-
Notifications
You must be signed in to change notification settings - Fork 220
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
How to run tests with sinon? #43
Comments
Just use sinon framework for karma - sinon's API will be global within tests |
Thanks @ColCh I ended up doing that and its working great. Here's an example if anyone wants to see it. https://github.com/bitwise/status |
@marr your link is broken |
@josmardias I will look at pushing it back up somewhere. Meantime, you should be able to use https://github.com/kmees/karma-sinon-chai |
@josmardias use karma-sinon or karma-sinon-chai If you need your unique setup, you can simple require sinon within webpack, and use |
I'll try it, thanks! |
Came across this same issue and found that it is fixed in |
Hi,
I am trying to run a test package and noticing that webpack still seems to bundle things in node_modules even though I am using the following karma/webpack config: https://gist.github.com/fb66622fa8284c76e6d9
An example test file:
React gets bundled, without issue even though I'd think that excludes would ignore it.
The issue is when I uncomment the sinon test, I get several critical issues:
Am I just doing things wrong by expecting mocha tests to run like they would on the server?
The text was updated successfully, but these errors were encountered: