Symlink node_modules to test folders so grunt-cli can find them

This commit is contained in:
Kyle Robinson Young 2012-12-13 18:30:16 -08:00
parent 7c326a6fcf
commit 98017e20af

View File

@ -86,6 +86,16 @@ function assertTask(task, options) {
}
exports.watchConfig = {
setUp: function(done) {
fs.symlinkSync(path.join(__dirname, '../../node_modules'), path.join(fixtures, 'multiTargets', 'node_modules'));
fs.symlinkSync(path.join(__dirname, '../../node_modules'), path.join(fixtures, 'oneTarget', 'node_modules'));
done();
},
tearDown: function(done) {
grunt.file.delete(path.join(fixtures, 'multiTargets', 'node_modules'));
grunt.file.delete(path.join(fixtures, 'oneTarget', 'node_modules'));
done();
},
oneTarget: function(test) {
test.expect(2);
var cwd = path.resolve(fixtures, 'oneTarget');