Skip to content

Commit

Permalink
feat(plugin-coverage): support lcovonly option for vitest
Browse files Browse the repository at this point in the history
  • Loading branch information
vmasek committed Jan 23, 2025
1 parent d9e43ee commit b230a3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/plugin-coverage/src/lib/nx/coverage-paths.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export async function getCoveragePathForVitest(
);
}

if (!reporter?.includes('lcov')) {
if (!reporter?.some(format => format === 'lcov' || format === 'lcovonly')) {
throw new Error(
`Vitest coverage configuration at ${config} does not include LCOV report format for target ${target} in project ${project.name}. Add 'lcov' format under coverage > reporter.`,
);
Expand Down

0 comments on commit b230a3d

Please sign in to comment.