From 2324514645e2ab7443382784f9af4944453f5b9f Mon Sep 17 00:00:00 2001 From: Yann Braga Date: Thu, 16 May 2024 15:36:20 +0200 Subject: [PATCH] explicitly call nyc with node --- src/test-storybook.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test-storybook.ts b/src/test-storybook.ts index eccc68ab..b846f8cd 100644 --- a/src/test-storybook.ts +++ b/src/test-storybook.ts @@ -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(),