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

Function convertToMochaTests

lib/workers.js:172–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170}
171
172const convertToMochaTests = testGroup => {
173 const group = []
174 if (testGroup instanceof Array) {
175 const mocha = MochaFactory.create({}, {})
176 mocha.files = testGroup
177 mocha.loadFiles()
178 mocha.suite.eachTest(test => {
179 group.push(test.uid)
180 })
181 mocha.unloadFiles()
182 }
183
184 return group
185}
186
187const getOverridenConfig = (workerName, workerConfig, config) => {
188 // clone config

Callers 2

addTestFilesMethod · 0.85
splitTestsByGroupsMethod · 0.85

Calls 2

pushMethod · 0.80
createMethod · 0.45

Tested by

no test coverage detected