MCPcopy
hub / github.com/vitest-dev/vitest / getReportedEntity

Method getReportedEntity

packages/vitest/src/node/state.ts:219–221  ·  view source on GitHub ↗
(task: Task)

Source from the content-addressed store, hash-verified

217 }
218
219 getReportedEntity(task: Task): TestModule | TestCase | TestSuite | undefined {
220 return this.reportedTasksMap.get(task)
221 }
222
223 getReportedEntityById(taskId: string): TestModule | TestCase | TestSuite | undefined {
224 const task = this.idMap.get(taskId)

Callers 15

getTestModulesMethod · 0.95
enqueuedMethod · 0.80
collectedMethod · 0.80
recordArtifactMethod · 0.80
reportEventMethod · 0.80
testModuleMethod · 0.80
onParseEndFunction · 0.80
shouldLogFunction · 0.80
printTaskErrorsFunction · 0.80

Calls 1

getMethod · 0.45

Tested by 1

onUserConsoleLogMethod · 0.64