Use normalizeFilePath() to unify test output on windows/Linux

This commit is contained in:
Michal Dorner 2021-01-16 23:06:50 +01:00
parent 97dfc915c5
commit 6f3367ef61
No known key found for this signature in database
GPG key ID: 9EEE04B48DA36786
9 changed files with 12 additions and 9 deletions

View file

@ -3,11 +3,12 @@ import * as path from 'path'
import {parseDotnetTrx} from '../src/parsers/dotnet-trx/dotnet-trx-parser'
import {ParseOptions} from '../src/parsers/parser-types'
import {normalizeFilePath} from '../src/utils/file-utils'
const fixturePath = path.join(__dirname, 'fixtures', 'dotnet-trx.trx')
const outputPath = path.join(__dirname, '__outputs__', 'dotnet-trx.md')
const xmlFixture = {
path: path.relative(__dirname, fixturePath),
path: normalizeFilePath(path.relative(__dirname, fixturePath)),
content: fs.readFileSync(fixturePath, {encoding: 'utf8'})
}