()
| 115 | } |
| 116 | |
| 117 | async function compareLocalToMaster() { |
| 118 | console.log( |
| 119 | chalk.white.bold('Comparing ') + |
| 120 | chalk.green.bold('Local (Current Branch)') + |
| 121 | chalk.white.bold(' to ') + |
| 122 | chalk.yellow.bold('Remote (Merge Base)') |
| 123 | ); |
| 124 | const localResults = await runLocalBenchmarks(false); |
| 125 | const remoteMasterResults = await runRemoteBenchmarks(false); |
| 126 | printResults(localResults, remoteMasterResults); |
| 127 | } |
| 128 | |
| 129 | if ((runLocal && runRemote) || (!runLocal && !runRemote)) { |
| 130 | compareLocalToMaster().then(() => process.exit(0)); |
no test coverage detected