Skip to content

Commit

Permalink
vitest coverage has not been patched with a fix, but this definition …
Browse files Browse the repository at this point in the history
…should allow for automatically patching (eventually)
  • Loading branch information
jay-hodgson committed Oct 31, 2023
1 parent 9c80893 commit 4c3088e
Show file tree
Hide file tree
Showing 6 changed files with 147 additions and 99 deletions.
6 changes: 3 additions & 3 deletions apps/SageAccountWeb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
"@types/react-plotly.js": "^2.6.0",
"@types/react-router-dom": "^5.3.3",
"@types/react-tooltip": "^4.2.4",
"@vitest/coverage-c8": "^0.33.0",
"@vitest/ui": "^0.33.0",
"@vitest/coverage-v8": "^0.34.6",
"@vitest/ui": "^0.34.6",
"assert": "^2.0.0",
"buffer": "^6.0.3",
"https-browserify": "^1.0.0",
Expand Down Expand Up @@ -75,7 +75,7 @@
"util": "^0.12.5",
"vite": "^4.4.2",
"vite-config": "workspace:*",
"vitest": "^0.33.0",
"vitest": "^0.34.6",
"whatwg-fetch": "^3.6.2"
},
"scripts": {
Expand Down
8 changes: 4 additions & 4 deletions apps/portals/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@
"@types/react-dom": "^18.2.6",
"@types/react-plotly.js": "^2.6.0",
"@types/react-router-dom": "^5.3.3",
"@vitest/coverage-c8": "^0.33.0",
"@vitest/ui": "^0.33.0",
"@vitest/utils": "^0.33.0",
"@vitest/coverage-v8": "^0.34.6",
"@vitest/ui": "^0.34.6",
"@vitest/utils": "^0.34.6",
"assert": "^2.0.0",
"buffer": "^6.0.3",
"https-browserify": "^1.0.0",
Expand Down Expand Up @@ -90,7 +90,7 @@
"util": "^0.12.5",
"vite": "^4.4.2",
"vite-config": "workspace:*",
"vitest": "^0.33.0",
"vitest": "^0.34.6",
"whatwg-fetch": "^3.6.2"
},
"browserslist": {
Expand Down
8 changes: 4 additions & 4 deletions apps/synapse-oauth-signin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@
"@types/react-plotly.js": "^2.6.0",
"@types/react-router-dom": "^5.3.3",
"@types/react-tooltip": "^4.2.4",
"@vitest/coverage-c8": "^0.33.0",
"@vitest/ui": "^0.33.0",
"@vitest/utils": "^0.33.0",
"@vitest/coverage-v8": "^0.34.6",
"@vitest/ui": "^0.34.6",
"@vitest/utils": "^0.34.6",
"assert": "^2.0.0",
"buffer": "^6.0.3",
"https-browserify": "^1.0.0",
Expand Down Expand Up @@ -79,7 +79,7 @@
"util": "^0.12.5",
"vite": "^4.4.2",
"vite-config": "workspace:*",
"vitest": "^0.33.0"
"vitest": "^0.34.6"
},
"scripts": {
"clean": "rimraf build coverage",
Expand Down
12 changes: 6 additions & 6 deletions packages/vite-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@
"./dist/vitest-config.js"
],
"peerDependencies": {
"@vitest/coverage-c8": "^0.33.0",
"@vitest/ui": "^0.33.0",
"@vitest/utils": "^0.33.0",
"@vitest/coverage-v8": "^0.34.6",
"@vitest/ui": "^0.34.6",
"@vitest/utils": "^0.34.6",
"vite": "^4.4.0",
"vitest": "^0.33.0"
"vitest": "^0.34.6"
},
"peerDependenciesMeta": {
"vitest": {
"optional": true
},
"@vitest/coverage-c8": {
"@vitest/coverage-v8": {
"optional": true
},
"@vitest/ui": {
Expand All @@ -43,6 +43,6 @@
"typescript": "5.1.6",
"vite": "^4.4.2",
"vite-plugin-svgr": "^3.2.0",
"vitest": "^0.33.0"
"vitest": "^0.34.6"
}
}
2 changes: 1 addition & 1 deletion packages/vite-config/src/vitest-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default mergeConfig(config, {
reporters: ['default', 'html'],
outputFile: { html: './coverage/report/index.html' },
coverage: {
provider: 'c8',
provider: 'v8',
reporter: ['text-summary', 'html-spa'],
reportsDirectory: './coverage/cov',
},
Expand Down
Loading

0 comments on commit 4c3088e

Please sign in to comment.