Skip to content

Commit

Permalink
fix(reporter-junit): choose different file name for escape XML test d…
Browse files Browse the repository at this point in the history
…ue to windows failed test
  • Loading branch information
ChrisTowles committed Aug 21, 2022
1 parent 19ce50d commit d29d4ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/reporters/tests/__snapshots__/reporters.spec.ts.snap
Expand Up @@ -237,7 +237,7 @@ AssertionError: expected 2.23606797749979 to equal 2
`;
exports[`JUnit reporter with outputFile with XML in error details 1`] = `
"JUNIT report written to <process-cwd>/report.xml
"JUNIT report written to <process-cwd>/report_escape_msg_xml.xml
"
`;
Expand Down
2 changes: 1 addition & 1 deletion test/reporters/tests/reporters.spec.ts
Expand Up @@ -106,7 +106,7 @@ test('JUnit reporter with outputFile', async () => {
test('JUnit reporter with outputFile with XML in error details', async () => {
// Arrange
const reporter = new JUnitReporter()
const outputFile = resolve('report.xml')
const outputFile = resolve('report_escape_msg_xml.xml')
const context = getContext()
context.vitest.config.outputFile = outputFile

Expand Down

0 comments on commit d29d4ce

Please sign in to comment.