jquery/build/tasks/lib/spawn_test.js
Michał Gołębiowski abb5715807 Build: switch from win-spawn to cross-spawn
The win-spawn package is deprecated.

Refs gh-2877
Refs 67c96a59f5
2016-01-27 13:02:58 +01:00

17 lines
484 B
JavaScript

/* jshint node: true */
"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 ) {
var testPaths = [].slice.call( arguments, 1 ),
spawn = require( "cross-spawn" );
spawn( "node", testPaths, { stdio: "inherit" } )
.on( "close", function( code ) {
done( code === 0 );
} );
} ;