Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


Support for define in tests with RequireJS #256

blacksonic opened this Issue · 1 comment

2 participants


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?


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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.