How to include the source files I want to test?
Closed this issue · 1 comments
callumlocke commented
The test/index.html
contains this:
<!-- include source files here... -->
<!-- include spec files here... -->
<script src="spec/test.js"></script>
But how am I supposed to include my source files?
If I've got a source file at app/scripts/foo.js
, and I want to test it, how do I reference this source file from test/index.html
?
Doing <script src="../app/scripts/foo.js"></script>
doesn't work, because when I run grunt test
, it mounts the test
directory with connect, and serves it as localhost:9000/index.html
. So the ../
doesn't work.
I can't find documentation for this anywhere. A similar question was posted on the yeoman/yeoman repo a month ago, but has gone unanswered.
callumlocke commented
Closing this as I've asked it at yeoman/generator-webapp#101 instead.