(file, grep)
| 44 | * matches the grep text. |
| 45 | */ |
| 46 | const grepFile = (file, grep) => { |
| 47 | const contents = fs.readFileSync(file, 'utf8') |
| 48 | const pattern = new RegExp(`((Scenario|Feature)\(.*${grep}.*\))`, 'g') // <- How future proof/solid is this? |
| 49 | return !!pattern.exec(contents) |
| 50 | } |
| 51 | |
| 52 | const mapFileFormats = files => { |
| 53 | return { |