diff --git a/__tests__/dart-json.test.ts b/__tests__/dart-json.test.ts index 05e771f..99bd7c5 100644 --- a/__tests__/dart-json.test.ts +++ b/__tests__/dart-json.test.ts @@ -2,7 +2,7 @@ import * as fs from 'fs' import * as path from 'path' import {parseDartJson} from '../src/parsers/dart-json/dart-json-parser' -import {ParseOptions} from '../src/parsers/test-parser' +import {ParseOptions} from '../src/parsers/parser-types' const xmlFixture = fs.readFileSync(path.join(__dirname, 'fixtures', 'dart-json.json'), {encoding: 'utf8'}) const outputPath = __dirname + '/__outputs__/dart-json.md' diff --git a/__tests__/jest-junit.test.ts b/__tests__/jest-junit.test.ts index 3d36f37..6ae22f1 100644 --- a/__tests__/jest-junit.test.ts +++ b/__tests__/jest-junit.test.ts @@ -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/' diff --git a/src/parsers/jest-junit/jest-junit-parser.ts b/src/parsers/jest-junit/jest-junit-parser.ts index d719f04..dcf3edd 100644 --- a/src/parsers/jest-junit/jest-junit-parser.ts +++ b/src/parsers/jest-junit/jest-junit-parser.ts @@ -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 }