Fix tests + jest-junit uses action 'name' input for title

This commit is contained in:
Michal Dorner 2021-01-10 18:01:52 +01:00
parent 4e2ae7493f
commit e7636701ef
No known key found for this signature in database
GPG key ID: 9EEE04B48DA36786
3 changed files with 4 additions and 4 deletions

View file

@ -26,7 +26,7 @@ export async function parseJestJunit(content: string, options: ParseOptions): Pr
return {
success,
output: {
title: `${junit.testsuites.$.name.trim()} ${icon}`,
title: `${options.name.trim()} ${icon}`,
summary: getSummary(junit),
annotations: options.annotations ? getAnnotations(junit, options.workDir, options.trackedFiles) : undefined
}