component-test icon indicating copy to clipboard operation
component-test copied to clipboard

make sure we have a reasonable error when phantomjs isn't installed

Open matthewmueller opened this issue 12 years ago • 1 comments

matthewmueller avatar Dec 11 '13 11:12 matthewmueller

can we just:

var which = require('which').sync;
var phantom = which('phantomjs');

if (!phantom) {
  throw new Error('phantomjs is not installed :(');
}

stephenmathieson avatar Dec 11 '13 13:12 stephenmathieson