Skip to content

Commit

Permalink
Merge pull request as-pect#105 from WebAssemblyOS/remove-config-regex
Browse files Browse the repository at this point in the history
Removed config check for group and test regexes
  • Loading branch information
jtenner authored Jun 19, 2019
2 parents 288d6ab + 4d97088 commit 327c8f4
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/cli/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,17 +145,17 @@ export function run(yargs: Options, compilerArgs: string[]): void {
console.log(chalk`{bgWhite.black [Log]} Including files: ${include.join(", ")}`);

// Create the test and group matchers
if (!configuration.testRegex) {
const testRegex = new RegExp(yargs.test, "i");
configuration.testRegex = testRegex;
console.log(chalk`{bgWhite.black [Log]} Running tests that match: ${testRegex.source}`);
}

const testRegex = new RegExp(yargs.test, "i");
configuration.testRegex = testRegex;
console.log(chalk`{bgWhite.black [Log]} Running tests that match: ${testRegex.source}`);



const groupRegex = new RegExp(yargs.group, "i");
configuration.groupRegex = groupRegex;
console.log(chalk`{bgWhite.black [Log]} Running groups that match: ${groupRegex.source}`);

if (!configuration.groupRegex) {
const groupRegex = new RegExp(yargs.group, "i");
configuration.groupRegex = groupRegex;
console.log(chalk`{bgWhite.black [Log]} Running groups that match: ${groupRegex.source}`);
}

/**
* Check to see if the binary files should be written to the fileSystem.
Expand Down

0 comments on commit 327c8f4

Please sign in to comment.