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

Function initFileMode

lib/plugin/pause.js:94–103  ·  view source on GitHub ↗
(targetPath, targetLine)

Source from the content-addressed store, hash-verified

92}
93
94function initFileMode(targetPath, targetLine) {
95 let paused = false
96
97 event.dispatcher.on(event.step.before, step => {
98 if (paused) return
99 if (!matchStepFile(step, targetPath, targetLine)) return
100 paused = true
101 recorder.add('pause:file', () => pause())
102 })
103}
104
105function initUrlMode(pattern) {
106 const helper = getBrowserHelper()

Callers 1

pause.jsFile · 0.85

Calls 3

matchStepFileFunction · 0.90
pauseFunction · 0.85
addMethod · 0.45

Tested by

no test coverage detected