MCPcopy Index your code
hub / github.com/codecombat/codecombat / getAllSpecFiles

Method getAllSpecFiles

app/views/TestView.js:216–228  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

214 }
215
216 static getAllSpecFiles () {
217 const allTests = requireTests.keys()
218 const product = utils.isOzaria ? 'ozaria' : 'codecombat'
219 const productSuffix = { codecombat: 'coco', ozaria: 'ozar' }[product]
220 const otherProductSuffix = { codecombat: 'ozar', ozaria: 'coco' }[product]
221 const productSpecificTests = []
222 for (const file of Array.from(allTests)) {
223 if (!new RegExp(`\\.${otherProductSuffix}\\.js$`).test(file)) {
224 productSpecificTests.push(file)
225 }
226 }
227 return productSpecificTests
228 }
229
230 destroy () {
231 // hack to get jasmine tests to properly run again on clicking links, and make sure if you

Callers 2

runTestsMethod · 0.95
initSpecFilesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected