Skip to content

Commit

Permalink
Quote testFolder to allow Regular Expressions (#1083)
Browse files Browse the repository at this point in the history
  • Loading branch information
a-dilettante authored and rotemmiz committed Jan 25, 2019
1 parent a16bf68 commit eebf6b9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion detox/local-cli/detox-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,9 @@ function runJest() {

const platformString = platform ? shellQuote(`--testNamePattern=^((?!${getPlatformSpecificString(platform)}).)*$`) : '';
const binPath = path.join('node_modules', '.bin', 'jest');
const quotedTestFolder = `"${testFolder}"`
const color = program.color ? '' : ' --no-color';
const command = `${binPath} ${testFolder} ${configFile}${color} --maxWorkers=${program.workers} ${platformString} ${collectExtraArgs()}`;
const command = `${binPath} ${quotedTestFolder} ${configFile}${color} --maxWorkers=${program.workers} ${platformString} ${collectExtraArgs()}`;
const detoxEnvironmentVariables = {
configuration: program.configuration,
loglevel: program.loglevel,
Expand Down

0 comments on commit eebf6b9

Please sign in to comment.