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

Method line

lib/step/base.js:148–169  ·  view source on GitHub ↗

@return {string}

()

Source from the content-addressed store, hash-verified

146
147 /** @return {string} */
148 line() {
149 const lines = this.stack.split('\n')
150 if (lines[STACK_LINE]) {
151 let line = lines[STACK_LINE].trim()
152 .replace(store.codeceptDir || '', '.')
153 .trim()
154
155 // Map .temp.mjs back to original .ts files using container's tsFileMapping
156 const fileMapping = store.tsFileMapping
157 if (line.includes('.temp.mjs') && fileMapping) {
158 for (const [tsFile, mjsFile] of fileMapping.entries()) {
159 if (line.includes(mjsFile)) {
160 line = line.replace(mjsFile, tsFile)
161 break
162 }
163 }
164 }
165
166 return line
167 }
168 return ''
169 }
170
171 /** @return {string} */
172 toString() {

Callers 8

docsPluginsFunction · 0.80
docsExternalHelpersFunction · 0.80
docsExternalPluginsFunction · 0.80
wikiFunction · 0.80
processChangelogFunction · 0.80
resultMethod · 0.80
heal.jsFile · 0.80
matchStepFileFunction · 0.80

Calls 2

includesMethod · 0.80
entriesMethod · 0.80

Tested by

no test coverage detected