From 8c258786084713a866a1f6f6d0a6957673a7f156 Mon Sep 17 00:00:00 2001 From: Rich-Harris Date: Sun, 19 Jun 2016 11:41:00 -0400 Subject: [PATCH] ensure local rollup build is used --- test/test.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/test/test.js b/test/test.js index f8c112e..47acb64 100644 --- a/test/test.js +++ b/test/test.js @@ -368,15 +368,9 @@ describe( 'rollup', function () { ( config.skip ? it.skip : config.solo ? it.only : it )( dir, function ( done ) { process.chdir( path.resolve( CLI, dir ) ); - if (os.platform() === 'win32') { - config.command = "node " + path.resolve( __dirname, '../bin' ) + path.sep + config.command; - } + const command = 'node ' + path.resolve( __dirname, '../bin' ) + path.sep + config.command; - exec( config.command, { - env: { - PATH: path.resolve( __dirname, '../bin' ) + path.delimiter + process.env.PATH - } - }, function ( err, code, stderr ) { + exec( command, {}, function ( err, code, stderr ) { if ( err ) { if ( config.error ) { config.error( err );