Allow the DEBUG envvar to specify if tests opens the browser

This commit is contained in:
Timothy Farrell 2018-07-14 14:51:32 -05:00
parent 07d3c77451
commit 62bfa12550

View File

@ -14,7 +14,10 @@ const TEST_FILENAME = '.spec_runner.html';
const HOST = '127.0.0.1';
const PORT = 10080;
const DEBUG = false;
const DEBUG =
typeof process.env['DEBUG'] === 'string'
? process.env['DEBUG'].toLower() == 'true'
: !!process.env['DEBUG'];
const PORTFOLIO_DIR = path.normalize(path.join(__dirname, '..'));
const JASMINE_DIR = path.relative(
PORTFOLIO_DIR,