Skip to content

Commit

Permalink
fix(vitest-config)!: migrate coverage provider from istanbul to v8
Browse files Browse the repository at this point in the history
  • Loading branch information
rozsival committed Apr 15, 2024
1 parent 1d8cf76 commit 0c4450c
Show file tree
Hide file tree
Showing 9 changed files with 434 additions and 370 deletions.
5 changes: 5 additions & 0 deletions .changeset/dry-dots-prove.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@apitree.cz/vitest-config": minor
---

Migrate coverage provider from `istanbul` to `v8`.
7 changes: 7 additions & 0 deletions .changeset/old-roses-do.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@apitree.cz/testing-library": patch
"@apitree.cz/eslint-config": patch
"@apitree.cz/vitest-config": patch
---

Bump dependencies to latest versions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@
"@apitree.cz/prettier-config": "workspace:*",
"@apitree.cz/ts-config": "workspace:*",
"@changesets/cli": "^2.27.1",
"@commitlint/cli": "^19.2.1",
"@commitlint/config-conventional": "^19.1.0",
"@commitlint/cli": "^19.2.2",
"@commitlint/config-conventional": "^19.2.2",
"@types/node": "^20.12.7",
"check-dependency-version-consistency": "^4.1.0",
"eslint": "^8.57.0",
Expand Down
8 changes: 4 additions & 4 deletions packages/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
"ts": "tsc --build tsconfig.json"
},
"dependencies": {
"@next/eslint-plugin-next": "^14.1.4",
"@types/eslint": "^8.56.8",
"@next/eslint-plugin-next": "^14.2.1",
"@types/eslint": "^8.56.9",
"@typescript-eslint/eslint-plugin": "^7.6.0",
"@typescript-eslint/parser": "^7.6.0",
"eslint-config-airbnb": "^19.0.4",
Expand All @@ -50,11 +50,11 @@
"eslint-plugin-react": "^7.34.1",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-storybook": "^0.8.0",
"eslint-plugin-testing-library": "^6.2.0",
"eslint-plugin-testing-library": "^6.2.1",
"eslint-plugin-unicorn": "^52.0.0",
"eslint-plugin-unused-imports": "^3.1.0",
"eslint-plugin-vitest": "^0.4.1",
"vitest": "^1.4.0"
"vitest": "^1.5.0"
},
"devDependencies": {
"eslint": "^8.57.0",
Expand Down
10 changes: 5 additions & 5 deletions packages/testing-library/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@
},
"devDependencies": {
"@apitree.cz/vitest-config": "workspace:*",
"@testing-library/react": "^15.0.0",
"@types/react": "^18.2.75",
"@types/react-dom": "^18.2.24",
"@vitest/coverage-istanbul": "^1.4.0",
"@testing-library/react": "^15.0.2",
"@types/react": "^18.2.78",
"@types/react-dom": "^18.2.25",
"@vitest/coverage-v8": "^1.5.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"vitest": "^1.4.0"
"vitest": "^1.5.0"
},
"peerDependencies": {
"@testing-library/react": "^15.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/vitest-config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
## Installation

```bash
pnpm add --save-dev @apitree.cz/vitest-config @vitest/coverage-istanbul vitest
pnpm add --save-dev @apitree.cz/vitest-config @vitest/coverage-v8 vitest
```

## Usage
Expand Down
10 changes: 5 additions & 5 deletions packages/vitest-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,17 @@
"ts": "tsc --build tsconfig.json"
},
"dependencies": {
"@swc/core": "^1.4.13",
"@swc/core": "^1.4.14",
"@vitejs/plugin-react": "^4.2.1",
"unplugin-swc": "^1.4.5",
"vite": "^5.2.8"
},
"devDependencies": {
"@vitest/coverage-istanbul": "^1.4.0",
"vitest": "^1.4.0"
"@vitest/coverage-v8": "^1.5.0",
"vitest": "^1.5.0"
},
"peerDependencies": {
"@vitest/coverage-istanbul": "^1.4.0",
"vitest": "^1.4.0"
"@vitest/coverage-v8": "^1.5.0",
"vitest": "^1.5.0"
}
}
2 changes: 1 addition & 1 deletion packages/vitest-config/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import type { CoverageOptions } from 'vitest';

export const coverage = {
all: true,
provider: 'istanbul',
provider: 'v8',
reporter: ['cobertura', 'html', 'lcovonly', 'text'],
} satisfies CoverageOptions;
Loading

0 comments on commit 0c4450c

Please sign in to comment.