Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pnpm dlx commitlint --edit ${1}
pnpm exec commitlint --edit ${1}
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export interface IstanbulPluginOptions {
cwd?: string;
nycrcPath?: string;
generatorOpts?: GeneratorOptions;
coverageVariable?: string;
onCover?: (fileName: string, fileCoverage: object) => void;
}

Expand Down Expand Up @@ -120,6 +121,7 @@ export default function istanbulPlugin(
autoWrap: true,
esModules: true,
compact: false,
coverageVariable: opts.coverageVariable ?? '__coverage__',
generatorOpts: { ...opts?.generatorOpts },
});

Expand Down