mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
Build: Rearrange grunt/npm tasks into a build/dist/test pattern
Ref 76df9e4e38
Closes gh-1980
This commit is contained in:
16
build/tasks/node_smoke_test.js
Normal file
16
build/tasks/node_smoke_test.js
Normal file
@@ -0,0 +1,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();
|
||||
});
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user