How to make "grunt dev" to excecute, before all tests, the file "test/boostrap.test.js"?
Closed this issue · 2 comments
jfmcode commented
So, I have added grunt-mocha-istanbul as explained in https://blog.sergiocruz.me/unit-test-sailsjs-with-mocha-and-instanbul-for-code-coverage/
However, I do not known how to indicate that, before running the test, the file test/boostrap.test.js
(created as indicated in http://sailsjs.org/documentation/concepts/testing) must be executed.
pocesar commented
you can do using require: ['test/bootstrap.test.js']
in your options, it's required before your test files through mocha --require
jfmcode commented
Thanks!