run-tests.js
/**
 * Run tests by calling the percy executable and passing
 * the right mvn executable
 *
 */
Run tests by calling the percy executable and passing
the right mvn executable
Run tests by calling the percy executable and passing the right mvn executable
function runTests() {
  const tests = spawn(MVN_CMD, ["test"], {
    stdio: "inherit",
    windowsVerbatimArguments: true
  });
  tests.on("close", () => {
    console.log("Tests completed!");
  });
  tests.on("exit", code => {
    code !== 0 ? process.exit(code) : "";
  });
}
function runTests ( ) { const tests = spawn ( MVN_CMD , [ "test" ] , { stdio : "inherit" , windowsVerbatimArguments : true } ) ; tests . on ( "close" , ( ) => { console . log ( "Tests completed!" ) ; } ) ; tests . on ( "exit" , code => { code !== 0 ? process . exit ( code ) : "" ; } ) ; }
Run tests by calling the percy executable and passing
 the right mvn executable
Run tests by calling the percy executable and passing the right mvn executable
// Otherwise errors are given a 0 exit code