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

Method initSpecFiles

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

Source from the content-addressed store, hash-verified

113 // RUNNING TESTS
114
115 initSpecFiles () {
116 this.specFiles = TestView.getAllSpecFiles()
117 if (this.subPath) {
118 const prefix = TEST_REQUIRE_PREFIX + this.subPath
119 return this.specFiles = ((() => {
120 const result = []
121 for (const f of Array.from(this.specFiles)) {
122 if (_.string.startsWith(f, prefix)) {
123 result.push(f)
124 }
125 }
126 return result
127 })())
128 }
129 }
130
131 static runTests (specFiles, demosOn, view) {
132 if (demosOn == null) { demosOn = false }

Callers 1

afterInsertMethod · 0.95

Calls 1

getAllSpecFilesMethod · 0.80

Tested by

no test coverage detected