This repository has been archived by the owner on Dec 27, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Error 'sinon not defined' when running tests in --production mode #11
Comments
It's the debugOnly flag |
@mcbain Yeah, it's poorly named. It prevents the package from being included in production bundles. |
I just read about it - seems that --production testing is dead :( |
@mcbain Please post a comment here if you find a solution. Your use case ought to be supported. |
It can be easily fixed by supporting a DISABLE_DEBUG_ONLY=1 env var and if it is set, not set debugOnly in package.js. PRs welcome. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Testing with --production flag ensures that the source wich gets deploymed afterwards was tested.
Sometimes - like in this issue - things do not work after getting minified.
The text was updated successfully, but these errors were encountered: