diff --git a/script/test b/script/test index fde922e94..dbb0f5c1f 100755 --- a/script/test +++ b/script/test @@ -90,7 +90,6 @@ for (let packageName in CONFIG.appMetadata.packageDependencies) { const pkgJsonPath = path.join(repositoryPackagePath, 'package.json') const nodeModulesPath = path.join(repositoryPackagePath, 'node_modules') - const nodeModulesBackupPath = path.join(repositoryPackagePath, 'node_modules.bak') let finalize = () => null if (require(pkgJsonPath).atomTestRunner) { console.log(`Installing test runner dependencies for ${packageName}`.bold.green) @@ -136,12 +135,16 @@ function runBenchmarkTests (callback) { let testSuitesToRun = testSuitesForPlatform(process.platform) -function testSuitesForPlatform(platform) { - switch(platform) { - case 'darwin': return [runCoreMainProcessTests, runCoreRenderProcessTests, runBenchmarkTests].concat(packageTestSuites) - case 'win32': return (process.arch === 'x64') ? [runCoreMainProcessTests, runCoreRenderProcessTests] : [runCoreMainProcessTests] - case 'linux': return [runCoreMainProcessTests] - default: return [] +function testSuitesForPlatform (platform) { + switch (platform) { + case 'darwin': + return [runCoreMainProcessTests, runCoreRenderProcessTests, runBenchmarkTests].concat(packageTestSuites) + case 'win32': + return (process.arch === 'x64') ? [runCoreMainProcessTests, runCoreRenderProcessTests] : [runCoreMainProcessTests] + case 'linux': + return [runCoreMainProcessTests] + default: + return [] } }