MCPcopy
hub / github.com/codeceptjs/CodeceptJS / addRecipe

Method addRecipe

lib/heal.js:29–35  ·  view source on GitHub ↗
(name, opts = {})

Source from the content-addressed store, hash-verified

27 }
28
29 addRecipe(name, opts = {}) {
30 if (!opts.priority) opts.priority = 0
31
32 if (!opts.fn) throw new Error(`Recipe ${name} should have a function 'fn' to execute`)
33
34 this.recipes[name] = opts
35 }
36
37 connectToEvents() {
38 event.dispatcher.on(event.suite.before, suite => {

Callers 3

heal.jsFile · 0.80
heal_test.jsFile · 0.80
heal_recipes.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected