diff --git a/packages/canyon-report/lib/reports/dynamic-data.js b/packages/canyon-report/lib/reports/dynamic-data.js index a067e403..f4221319 100644 --- a/packages/canyon-report/lib/reports/dynamic-data.js +++ b/packages/canyon-report/lib/reports/dynamic-data.js @@ -40,7 +40,7 @@ const generateDynamicData = ({coverage,_instrumentCwd}) => { const jsonData = { content: data, coverage: { - ...coverage[key], + ...JSON.parse(coverage)[key], path: key.replaceAll(instrumentCwd+'/', ""), }, }; diff --git a/packages/canyon-report/package.json b/packages/canyon-report/package.json index cdd69a9d..268ede0c 100755 --- a/packages/canyon-report/package.json +++ b/packages/canyon-report/package.json @@ -1,6 +1,6 @@ { "name": "canyon-report", - "version": "0.0.8-beta-35", + "version": "0.0.8-beta-36", "description": "Canyon's Coverage Reporting Toolkit", "main": "./lib/index.js", "bin": "./lib/cli.js",