Allow web tests to pass electron path exists check

This commit is contained in:
Daniel Imms 2019-08-09 10:03:08 -07:00
parent 16a19e4452
commit 3d64c7ef94

View file

@ -133,7 +133,7 @@ if (testCodePath) {
process.env.VSCODE_CLI = '1';
}
if (!fs.existsSync(electronPath || '')) {
if (!opts.web && !fs.existsSync(electronPath || '')) {
fail(`Can't find Code at ${electronPath}.`);
}