Skip to content

Commit

Permalink
Switch from istanbul to v8 for vitest coverage provider (iTwin#7252)
Browse files Browse the repository at this point in the history
  • Loading branch information
hl662 authored Oct 9, 2024
1 parent 612f94f commit 7e6467d
Show file tree
Hide file tree
Showing 11 changed files with 59 additions and 40 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@itwin/core-bentley",
"comment": "",
"type": "none"
}
],
"packageName": "@itwin/core-bentley"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@itwin/core-common",
"comment": "",
"type": "none"
}
],
"packageName": "@itwin/core-common"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@itwin/core-geometry",
"comment": "",
"type": "none"
}
],
"packageName": "@itwin/core-geometry"
}
4 changes: 2 additions & 2 deletions common/config/rush/browser-approved-packages.json
Original file line number Diff line number Diff line change
Expand Up @@ -387,8 +387,8 @@
"allowedCategories": [ "internal" ]
},
{
"name": "@vitest/coverage-istanbul",
"allowedCategories": [ "backend", "common" ]
"name": "@vitest/coverage-v8",
"allowedCategories": [ "common" ]
},
{
"name": "@xmldom/xmldom",
Expand Down
53 changes: 21 additions & 32 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion core/bentley/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"@itwin/eslint-plugin": "^4.0.2",
"@opentelemetry/api": "1.0.4",
"@types/node": "~18.16.20",
"@vitest/coverage-istanbul": "^2.1.0",
"@vitest/coverage-v8": "^2.1.0",
"eslint": "^8.56.0",
"rimraf": "^3.0.2",
"typescript": "~5.3.3",
Expand Down
2 changes: 1 addition & 1 deletion core/bentley/vitest.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export default defineConfig({
test: {
dir: "src",
coverage: {
provider: "istanbul", // akin to nyc
provider: "v8",
include: [
"src/**/*"
],
Expand Down
2 changes: 1 addition & 1 deletion core/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"@types/chai": "4.3.1",
"@types/flatbuffers": "~1.10.0",
"@types/node": "~18.16.20",
"@vitest/coverage-istanbul": "^2.1.0",
"@vitest/coverage-v8": "^2.1.0",
"eslint": "^8.56.0",
"nyc": "^15.1.0",
"rimraf": "^3.0.2",
Expand Down
2 changes: 1 addition & 1 deletion core/common/vitest.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export default defineConfig({
test: {
dir: "src",
coverage: {
provider: "istanbul", // akin to nyc
provider: "v8",
include: [
"src/**/*"
],
Expand Down
2 changes: 1 addition & 1 deletion core/geometry/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"@itwin/eslint-plugin": "^4.0.2",
"@types/flatbuffers": "~1.10.0",
"@types/node": "~18.16.20",
"@vitest/coverage-istanbul": "^2.1.0",
"@vitest/coverage-v8": "^2.1.0",
"eslint": "^8.56.0",
"rimraf": "^3.0.2",
"typescript": "~5.3.3",
Expand Down
2 changes: 1 addition & 1 deletion core/geometry/vitest.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default defineConfig({
setupFiles: "./src/test/setupTests.ts",
// include: ["**/filename.test.ts"], // to honor it/describe.only
coverage: {
provider: "istanbul", // akin to nyc,
provider: "v8",
include: [
"src/**/*"
],
Expand Down

0 comments on commit 7e6467d

Please sign in to comment.