Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

jasmine-spec.js.erb should not minify test-only JS #62

Closed
kpolitowicz opened this issue Aug 10, 2013 · 2 comments
Closed

jasmine-spec.js.erb should not minify test-only JS #62

kpolitowicz opened this issue Aug 10, 2013 · 2 comments

Comments

@kpolitowicz
Copy link

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?

@searls
Copy link
Member

searls commented Sep 15, 2013

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.

@searls searls closed this as completed Sep 15, 2013
@jrust
Copy link

jrust commented Mar 18, 2014

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 free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants