Skip to content

Commit

Permalink
Move to v8 coverage (#4075)
Browse files Browse the repository at this point in the history
* chore: select latest node lts by default

* chore(dev-deps): coverage with v8

---------

Co-authored-by: Sebastien Vanvelthem <[email protected]>
  • Loading branch information
belgattitude and Sebastien Vanvelthem authored Jul 16, 2023
1 parent de0b954 commit 1e0917e
Show file tree
Hide file tree
Showing 13 changed files with 41 additions and 18 deletions.
2 changes: 1 addition & 1 deletion apps/nextjs-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
"@types/react-test-renderer": "18.0.0",
"@types/testing-library__jest-dom": "5.14.7",
"@vitejs/plugin-react": "4.0.3",
"@vitest/coverage-istanbul": "0.33.0",
"@vitest/coverage-v8": "0.33.0",
"@vitest/ui": "0.33.0",
"autoprefixer": "10.4.14",
"cross-env": "7.0.3",
Expand Down
2 changes: 1 addition & 1 deletion apps/nextjs-app/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default defineConfig({
dir: '../../.cache/vitest/nextjs-app',
},
coverage: {
provider: 'istanbul',
provider: 'v8',
reporter: ['text', 'clover'],
extension: ['js', 'jsx', 'ts', 'tsx'],
},
Expand Down
2 changes: 2 additions & 0 deletions apps/remix-app/.gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
node_modules

/coverage

.cache
.vercel
.output
Expand Down
2 changes: 1 addition & 1 deletion apps/vite-app/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default defineConfig({
dir: '../../.cache/vitest/vite-app',
},
coverage: {
provider: 'istanbul',
provider: 'v8',
reporter: ['text', 'clover'],
extension: ['js', 'jsx', 'ts', 'tsx'],
},
Expand Down
2 changes: 1 addition & 1 deletion packages/core-lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"@types/react": "18.2.14",
"@types/react-dom": "18.2.6",
"@vitejs/plugin-react": "4.0.3",
"@vitest/coverage-istanbul": "0.33.0",
"@vitest/coverage-v8": "0.33.0",
"@vitest/ui": "0.33.0",
"@your-org/eslint-config-bases": "workspace:^",
"cross-env": "7.0.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/core-lib/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default defineConfig({
dir: '../../.cache/vitest/core-lib',
},
coverage: {
provider: 'istanbul',
provider: 'v8',
reporter: ['text', 'clover'],
extension: ['js', 'jsx', 'ts', 'tsx'],
all: true,
Expand Down
2 changes: 1 addition & 1 deletion packages/db-main-prisma/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"@prisma/client": "4.16.2",
"@soluble/dsn-parser": "1.9.1",
"@types/node": "20.4.1",
"@vitest/coverage-istanbul": "0.33.0",
"@vitest/coverage-v8": "0.33.0",
"@vitest/ui": "0.33.0",
"@your-org/eslint-config-bases": "workspace:^",
"camelcase": "7.0.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/db-main-prisma/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default defineConfig({
dir: '../../.cache/vitest/db-main-e2e',
},
coverage: {
provider: 'istanbul',
provider: 'v8',
reporter: ['text', 'clover'],
extension: ['js', 'jsx', 'ts', 'tsx'],
all: true,
Expand Down
2 changes: 1 addition & 1 deletion packages/ts-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"@size-limit/file": "8.2.6",
"@types/jest": "29.5.3",
"@types/node": "20.4.1",
"@vitest/coverage-istanbul": "0.33.0",
"@vitest/coverage-v8": "0.33.0",
"@your-org/eslint-config-bases": "workspace:^",
"cross-env": "7.0.3",
"es-check": "7.1.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/ts-utils/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default defineConfig({
dir: '../../.cache/vitest/ts-utils',
},
coverage: {
provider: 'istanbul',
provider: 'v8',
reporter: ['text', 'clover'],
extension: ['js', 'jsx', 'ts', 'tsx'],
all: true,
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"@types/node": "20.4.1",
"@types/react": "18.2.14",
"@types/react-dom": "18.2.6",
"@vitest/coverage-istanbul": "0.33.0",
"@vitest/coverage-v8": "0.33.0",
"@your-org/eslint-config-bases": "workspace:^",
"autoprefixer": "10.4.14",
"cross-env": "7.0.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-lib/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default defineConfig({
dir: '../../.cache/vitest/ui-lib',
},
coverage: {
provider: 'istanbul',
provider: 'v8',
reporter: ['text', 'clover'],
extension: ['js', 'jsx', 'ts', 'tsx'],
all: true,
Expand Down
35 changes: 28 additions & 7 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ __metadata:
languageName: node
linkType: hard

"@ampproject/remapping@npm:^2.2.0":
"@ampproject/remapping@npm:^2.2.0, @ampproject/remapping@npm:^2.2.1":
version: 2.2.1
resolution: "@ampproject/remapping@npm:2.2.1"
dependencies:
Expand Down Expand Up @@ -8398,6 +8398,27 @@ __metadata:
languageName: node
linkType: hard

"@vitest/coverage-v8@npm:0.33.0":
version: 0.33.0
resolution: "@vitest/coverage-v8@npm:0.33.0"
dependencies:
"@ampproject/remapping": "npm:^2.2.1"
"@bcoe/v8-coverage": "npm:^0.2.3"
istanbul-lib-coverage: "npm:^3.2.0"
istanbul-lib-report: "npm:^3.0.0"
istanbul-lib-source-maps: "npm:^4.0.1"
istanbul-reports: "npm:^3.1.5"
magic-string: "npm:^0.30.1"
picocolors: "npm:^1.0.0"
std-env: "npm:^3.3.3"
test-exclude: "npm:^6.0.0"
v8-to-istanbul: "npm:^9.1.0"
peerDependencies:
vitest: ">=0.32.0 <1"
checksum: c49f92640375b6fe6c773f4fcc1852c61c914e9f4a86ce9b33c4c87c939d2b90968234ca18e2cd69ed7278307776484dfe233188e111df007371e56113d49fc9
languageName: node
linkType: hard

"@vitest/expect@npm:0.33.0":
version: 0.33.0
resolution: "@vitest/expect@npm:0.33.0"
Expand Down Expand Up @@ -8579,7 +8600,7 @@ __metadata:
"@types/react": "npm:18.2.14"
"@types/react-dom": "npm:18.2.6"
"@vitejs/plugin-react": "npm:4.0.3"
"@vitest/coverage-istanbul": "npm:0.33.0"
"@vitest/coverage-v8": "npm:0.33.0"
"@vitest/ui": "npm:0.33.0"
"@your-org/eslint-config-bases": "workspace:^"
"@your-org/ts-utils": "workspace:^"
Expand Down Expand Up @@ -8614,7 +8635,7 @@ __metadata:
"@prisma/client": "npm:4.16.2"
"@soluble/dsn-parser": "npm:1.9.1"
"@types/node": "npm:20.4.1"
"@vitest/coverage-istanbul": "npm:0.33.0"
"@vitest/coverage-v8": "npm:0.33.0"
"@vitest/ui": "npm:0.33.0"
"@your-org/eslint-config-bases": "workspace:^"
camelcase: "npm:7.0.1"
Expand Down Expand Up @@ -8709,7 +8730,7 @@ __metadata:
"@size-limit/file": "npm:8.2.6"
"@types/jest": "npm:29.5.3"
"@types/node": "npm:20.4.1"
"@vitest/coverage-istanbul": "npm:0.33.0"
"@vitest/coverage-v8": "npm:0.33.0"
"@your-org/eslint-config-bases": "workspace:^"
cross-env: "npm:7.0.3"
es-check: "npm:7.1.1"
Expand Down Expand Up @@ -8751,7 +8772,7 @@ __metadata:
"@types/node": "npm:20.4.1"
"@types/react": "npm:18.2.14"
"@types/react-dom": "npm:18.2.6"
"@vitest/coverage-istanbul": "npm:0.33.0"
"@vitest/coverage-v8": "npm:0.33.0"
"@your-org/eslint-config-bases": "workspace:^"
"@your-org/ts-utils": "workspace:^"
autoprefixer: "npm:10.4.14"
Expand Down Expand Up @@ -18432,7 +18453,7 @@ __metadata:
"@types/testing-library__jest-dom": "npm:5.14.7"
"@vercel/analytics": "npm:1.0.1"
"@vitejs/plugin-react": "npm:4.0.3"
"@vitest/coverage-istanbul": "npm:0.33.0"
"@vitest/coverage-v8": "npm:0.33.0"
"@vitest/ui": "npm:0.33.0"
"@your-org/api-gateway": "workspace:^"
"@your-org/common-i18n": "workspace:^"
Expand Down Expand Up @@ -24422,7 +24443,7 @@ __metadata:
languageName: node
linkType: hard

"v8-to-istanbul@npm:^9.0.0, v8-to-istanbul@npm:^9.0.1":
"v8-to-istanbul@npm:^9.0.0, v8-to-istanbul@npm:^9.0.1, v8-to-istanbul@npm:^9.1.0":
version: 9.1.0
resolution: "v8-to-istanbul@npm:9.1.0"
dependencies:
Expand Down

2 comments on commit 1e0917e

@vercel
Copy link

@vercel vercel bot commented on 1e0917e Jul 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

monorepo-vite-app – ./apps/vite-app

monorepo-vite-app-git-main-belgattitude.vercel.app
monorepo-vite-app-belgattitude.vercel.app
monorepo-vite-app.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 1e0917e Jul 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

monorepo-nextjs-app – ./apps/nextjs-app

monorepo-nextjs-app-belgattitude.vercel.app
monorepo-nextjs-app.vercel.app
monorepo-nextjs-app-git-main-belgattitude.vercel.app

Please sign in to comment.