Skip to content

Commit b230a3d

Browse files
committed
feat(plugin-coverage): support lcovonly option for vitest
1 parent d9e43ee commit b230a3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/plugin-coverage/src/lib/nx/coverage-paths.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ export async function getCoveragePathForVitest(
143143
);
144144
}
145145

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

0 commit comments

Comments
 (0)