Allow the DEBUG envvar to specify if tests opens the browser
This commit is contained in:
parent
07d3c77451
commit
62bfa12550
@ -14,7 +14,10 @@ const TEST_FILENAME = '.spec_runner.html';
|
|||||||
const HOST = '127.0.0.1';
|
const HOST = '127.0.0.1';
|
||||||
const PORT = 10080;
|
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 PORTFOLIO_DIR = path.normalize(path.join(__dirname, '..'));
|
||||||
const JASMINE_DIR = path.relative(
|
const JASMINE_DIR = path.relative(
|
||||||
PORTFOLIO_DIR,
|
PORTFOLIO_DIR,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user