feat(lcov) use really lcov.info file

This commit is contained in:
Julien Catania 2024-01-12 16:10:04 +01:00
parent 61007344dd
commit fb59f4f91d
11 changed files with 204 additions and 113 deletions

View file

@ -3,12 +3,12 @@ import * as path from 'path'
import {getReport} from '../src/report/get-report'
import {normalizeFilePath} from '../src/utils/path-utils'
import { LcovParser } from "../src/parsers/lcov-json/lcov-parser";
import { LcovParser } from "../src/parsers/lcov/lcov-parser";
describe('lcov report coverage', () => {
it('report from facebook/jest test results matches snapshot', async () => {
const fixturePath = path.join(__dirname, 'fixtures', 'lcov.json')
const fixturePath = path.join(__dirname, 'fixtures', 'lcov.info')
const outputPath = path.join(__dirname, '__outputs__', 'lcov-report-results.md')
const filePath = normalizeFilePath(path.relative(__dirname, fixturePath))
const fileContent = fs.readFileSync(fixturePath, {encoding: 'utf8'})