()
| 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 |
no outgoing calls
no test coverage detected