You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.
This is coming from angular/angular.js#3534 - not sure if this is a reasonable request, but some external code that is supposed to be used only for testing may not have all the anti-minifying strategies implemented, thus breaking jasmine spec runs.
This can be prevented by config.assets.compress = false in test env (mind #53), but what if you want to run the unit tests with your app JS code minified?
The text was updated successfully, but these errors were encountered:
It sounds like you have a valid enough workaround. Honestly I'd never considered running my unit tests against minified code because it'd be so hard to debug. I'm not overly interested in supporting tests under minified code.
One other note for those that encounter this, you may also need to set config.assets.js_compressor = nil in your test.rb as assets.compress is for gzip but js_compressor is for minification (go figure).
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
This is coming from angular/angular.js#3534 - not sure if this is a reasonable request, but some external code that is supposed to be used only for testing may not have all the anti-minifying strategies implemented, thus breaking jasmine spec runs.
This can be prevented by config.assets.compress = false in test env (mind #53), but what if you want to run the unit tests with your app JS code minified?
The text was updated successfully, but these errors were encountered: