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

@ -2,7 +2,7 @@ import * as fs from 'fs'
import * as path from 'path'
import {parseJestJunit} from '../src/parsers/jest-junit/jest-junit-parser'
import {ParseOptions} from '../src/parsers/test-parser'
import {ParseOptions} from '../src/parsers/parser-types'
const xmlFixture = fs.readFileSync(path.join(__dirname, 'fixtures', 'jest-junit.xml'), {encoding: 'utf8'})
const outputPath = __dirname + '/__outputs__/jest-junit.md'
@ -10,7 +10,7 @@ const outputPath = __dirname + '/__outputs__/jest-junit.md'
describe('jest-junit tests', () => {
it('matches report snapshot', async () => {
const opts: ParseOptions = {
name: 'unused',
name: 'jest tests',
annotations: true,
trackedFiles: ['__tests__/main.test.js', '__tests__/second.test.js', 'lib/main.js'],
workDir: 'C:/Users/Michal/Workspace/dorny/test-check/reports/jest/'