1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
module.exports = function( grunt ) { "use strict"; grunt.registerTask( "node_smoke_test", function() { var done = this.async(); require( "jsdom" ).env( "", function( errors, window ) { if ( errors ) { console.error( errors ); done( false ); } require( "../.." )( window ); done(); }); }); };