I'd like my tests to be in a separated project from the code under test as described in Jasmine in a separate test project. However, the approach with including reference paths in the test files doesn't apply to when the test is used with requirejs. Is there any other way to accomplish this?
Asked
Active
Viewed 1,748 times
1 Answers
4
You should be able to do that using the chutzpah.json file settings. Take a look at this sample which shows having the source and tests in different folders.

Matthew Manela
- 16,572
- 3
- 64
- 66
-
Btw, if the JS module under test has dependencies to e.g. Knockout, Underscore etc. must these dependent files be located in the same folder as the JS file containing the module being tested? – Christian Oct 13 '14 at 06:28