MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / grepFile

Function grepFile

lib/command/run-multiple/chunk.js:46–50  ·  view source on GitHub ↗
(file, grep)

Source from the content-addressed store, hash-verified

44 * matches the grep text.
45 */
46const 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
52const mapFileFormats = files => {
53 return {

Callers 1

createChunksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected