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

Function attachJUnitArtifact

lib/plugin/screencast.js:282–289  ·  view source on GitHub ↗
(test, filePath)

Source from the content-addressed store, hash-verified

280}
281
282function attachJUnitArtifact(test, filePath) {
283 const mocha = Container.mocha?.()
284 const junit = mocha?.options?.reporterOptions?.['mocha-junit-reporter']
285 if (junit?.options?.attachments) {
286 test.attachments = test.attachments || []
287 test.attachments.push(filePath)
288 }
289}

Callers 1

finalizeScreencastFunction · 0.85

Calls 2

mochaMethod · 0.80
pushMethod · 0.80

Tested by

no test coverage detected