The only way I found is to use global values, which is not very good, but it works
inside grunt.js config
global.hell = 'hey you';
inside the test
console.log(global.hell);
check out another way maybe it would be better
- EDIT
No, it seems, this is the one I will stop on if I do not want to end up black magic, as in mocha, as promised, because I do not have the skills to write this.
- EDIT
You can also take a look at this - https://github.com/visionmedia/mocha/wiki/Shared-Behaviours you can share some object between tests, but you are not sure if it will help with grunt
source share