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

Function pauseNow

lib/pause.js:283–287  ·  view source on GitHub ↗

* Trigger a one-shot pause from outside the test (e.g. the MCP server, * pausing the test at a specific step index without modifying the test). * Schedules pauseSession through the recorder so it slots between steps.

(passedObject = {})

Source from the content-addressed store, hash-verified

281 * Schedules pauseSession through the recorder so it slots between steps.
282 */
283function pauseNow(passedObject = {}) {
284 if (store.dryRun) return
285 registerPauseListeners()
286 recorder.add('Triggered pause', () => pauseSession(passedObject))
287}
288
289export default pause
290export { registerVariable, setPauseHandler, pauseNow }

Callers 2

pause_test.jsFile · 0.90
onStepAfterFunction · 0.90

Calls 3

registerPauseListenersFunction · 0.85
pauseSessionFunction · 0.85
addMethod · 0.45

Tested by

no test coverage detected