Open sonicoder86 opened 11 years ago
Personally, I've never gotten require.js support to work, but I've left it in the project because I don't to break someone's setup if it works for them. I don't really have an answer, @mhevery wrote it, but it hasn't been touched in long enough that it may not work with newer versions of require.
Maybe you could test for existence of define before running those statements?
I'm trying to run my code and tests both in the browser and in node js, but having problems with unnamed define statements in my tests. My tests use define before describing the specs, but jasmine node apperantly wants me to wrap them in requirejs which isn't compatible how karma testrunner handles it. Is there a solution for this, loading tests with requirejs using the define in tests?