mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
17 lines
438 B
JavaScript
17 lines
438 B
JavaScript
"use strict";
|
|
|
|
// Run Node with provided parameters: the first one being the Grunt
|
|
// done function and latter ones being files to be tested.
|
|
// See the comment in ../node_smoke_tests.js for more information.
|
|
module.exports = function spawnTest( done, command ) {
|
|
var spawn = require( "child_process" ).spawn;
|
|
|
|
spawn( command, {
|
|
stdio: "inherit",
|
|
shell: true
|
|
} )
|
|
.on( "close", function( code ) {
|
|
done( code === 0 );
|
|
} );
|
|
};
|