Skip to content

Commit

Permalink
fix(runner): use npx to launch apps instead of hard coded paths
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherthielen committed Mar 29, 2018
1 parent ba245cc commit 2cefa7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cypress-runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ if (!fs.existsSync(path)) {
}

const { fork } = require('child_process');
const browserSync = fork('./node_modules/.bin/serve', ['-n', '-s', '-p', port, path]);
const cypress = fork('./node_modules/.bin/cypress', [cypressCmd]);
const browserSync = fork('npx', ['serve', '-n', '-s', '-p', port, path]);
const cypress = fork('npx', ['cypress', cypressCmd]);

process.on('SIGINT', function() {
browserSync.kill();
Expand Down

0 comments on commit 2cefa7e

Please sign in to comment.