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

Function makeStepFilter

lib/plugin/screenshot.js:389–397  ·  view source on GitHub ↗
(trigger, options)

Source from the content-addressed store, hash-verified

387}
388
389function makeStepFilter(trigger, options) {
390 if (trigger.on === 'file' && trigger.path) {
391 return step => matchStepFile(step, trigger.path, trigger.line)
392 }
393 if (trigger.on === 'fail') {
394 return step => step.status === 'failed'
395 }
396 return () => true
397}
398
399function isStepIgnored(step, patterns) {
400 if (!patterns || !patterns.length) return false

Callers 1

wireSlidesFunction · 0.85

Calls 1

matchStepFileFunction · 0.90

Tested by

no test coverage detected