Skip to content

Commit

Permalink
fix: junit consistently puts "skipped" inside "testcase"
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed Nov 21, 2022
1 parent fc8667f commit f7b27af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vitest/src/node/reporters/junit.ts
Expand Up @@ -159,7 +159,7 @@ export class JUnitReporter implements Reporter {
await this.writeLogs(task, 'err')

if (task.mode === 'skip' || task.mode === 'todo')
this.logger.log('<skipped/>')
await this.logger.log('<skipped/>')

if (task.result?.state === 'fail') {
const error = task.result.error
Expand Down

0 comments on commit f7b27af

Please sign in to comment.