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
On Linux this worked correctly, on OSX and Windows the resulting code didn't contain the __env__ var that karma-env-preprocessor adds. It seems that this happens if env is run before browserify, but everything works fine if they run in the other order.
Changing the second preprocessor line to '**/*.spec.coffee': [ 'browserify', 'env' ]solves the problem, but wasn't clear initially (it's easy to make this change, merge it, and not realise it won't work on other platforms until another developer not using Linux finds it and has to debug the issues).
Expected behaviour
(More generally: for a defined test suite, it should be run in the same way everywhere)
Actual behaviour
Environment Details
karma --version
): 1.3.0karma.config.js
file(Trimmed, for a full example check out this commit, which uses the config in karma.conf.coffee, which combines custom options with defaults from resin-config-karma)
On Linux this worked correctly, on OSX and Windows the resulting code didn't contain the
__env__
var thatkarma-env-preprocessor
adds. It seems that this happens ifenv
is run beforebrowserify
, but everything works fine if they run in the other order.Changing the second preprocessor line to
'**/*.spec.coffee': [ 'browserify', 'env' ]
solves the problem, but wasn't clear initially (it's easy to make this change, merge it, and not realise it won't work on other platforms until another developer not using Linux finds it and has to debug the issues).Steps to reproduce the behaviour
Full repro:
npm run build && npm run test-browser
The text was updated successfully, but these errors were encountered: