Skip to content

Commit

Permalink
Merge pull request #461 from storybookjs/yann/fix-coverage-process
Browse files Browse the repository at this point in the history
Fix Windows support in coverage generation
  • Loading branch information
yannbf authored May 17, 2024
2 parents e14700d + 2324514 commit e8c15d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test-storybook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ async function reportCoverage() {
if (process.env.JEST_SHARD !== 'true') {
const nycBinFullPath = getNycBinPath();
execSync(
`${nycBinFullPath} report --reporter=text --reporter=lcov -t ${coverageFolder} --report-dir ${coverageFolder}`,
`node ${nycBinFullPath} report --reporter=text --reporter=lcov -t ${coverageFolder} --report-dir ${coverageFolder}`,
{
stdio: 'inherit',
cwd: process.cwd(),
Expand Down

0 comments on commit e8c15d5

Please sign in to comment.