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

Method createMocha

lib/container.js:320–326  ·  view source on GitHub ↗
(config = {}, opts = {})

Source from the content-addressed store, hash-verified

318 }
319
320 static createMocha(config = {}, opts = {}) {
321 const mochaConfig = config?.mocha || {}
322 if (config?.grep && !opts?.grep) {
323 mochaConfig.grep = config.grep
324 }
325 container.mocha = MochaFactory.create(mochaConfig, opts || {})
326 }
327}
328
329export default Container

Callers 6

createMethod · 0.95
runOnceMethod · 0.80
createGroupsOfTestsMethod · 0.80
createGroupsOfSuitesMethod · 0.80
messageHandlerFunction · 0.80
worker_test.jsFile · 0.80

Calls 1

createMethod · 0.45

Tested by

no test coverage detected