I'd like to run my tests in PhantomJS using yeoman test
as well as in browser using yeoman server:test
. The problem though is that PhantomJS doesn't find my includes in my index.html
:
<script src="scripts/view/customer_view.js"></script>
...because it looks inside the test/
-directory. Of course it would work if I tell my coffee-task to duplicate all the files into the test/
-directory as well. But that seems wrong.
So, is there any way to use:
- the same include paths for headless and browser?
- the same files that have already been created in /temp/scripts? (because I use CoffeeScript)