Skip to content

Commit

Permalink
Merge pull request #8920 from weseek/support/upgrade-vitest
Browse files Browse the repository at this point in the history
support: Upgrade vitest
  • Loading branch information
yuki-takei authored Jun 25, 2024
2 parents 911bc85 + b8eb1a6 commit 4516718
Show file tree
Hide file tree
Showing 6 changed files with 127 additions and 164 deletions.
2 changes: 0 additions & 2 deletions apps/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,6 @@
"@types/throttle-debounce": "^5.0.1",
"@types/unzip-stream": "^0.3.4",
"@types/url-join": "^4.0.2",
"@vitejs/plugin-react": "^4.3.0",
"@vitest/coverage-v8": "^0.34.6",
"babel-loader": "^8.2.5",
"bootstrap": "=5.3.2",
"connect-browser-sync": "^2.1.0",
Expand Down
3 changes: 3 additions & 0 deletions apps/app/vitest.config.components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,8 @@ export default defineConfig({
include: [
'**/*.spec.{tsx,jsx}',
],
coverage: {
reportsDirectory: './coverage/components',
},
},
});
1 change: 1 addition & 0 deletions apps/app/vitest.config.integ.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export default mergeConfig(
'./test-with-vite/setup/mongoms.ts',
],
coverage: {
reportsDirectory: './coverage/integ',
exclude: [
'**/*{.,-}integ.ts',
],
Expand Down
3 changes: 3 additions & 0 deletions apps/app/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,8 @@ export default defineConfig({
],
clearMocks: true,
globals: true,
coverage: {
reportsDirectory: './coverage/unit',
},
},
});
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@
"@types/path-browserify": "^1.0.0",
"@typescript-eslint/eslint-plugin": "^5.59.7",
"@typescript-eslint/parser": "^5.59.7",
"@vitejs/plugin-react": "^4.0.3",
"@vitest/coverage-v8": "^0.34.6",
"@vitest/ui": "^0.31.1",
"@vitejs/plugin-react": "^4.3.1",
"@vitest/coverage-v8": "^1.6.0",
"@vitest/ui": "^1.6.0",
"cypress": "^13.3.0",
"cypress-wait-until": "^2.0.1",
"eslint": "^8.41.0",
Expand Down Expand Up @@ -105,7 +105,7 @@
"vite": "^5.2.9",
"vite-plugin-dts": "^3.8.3",
"vite-tsconfig-paths": "^4.3.2",
"vitest": "~1.5.3",
"vitest": "~1.6.0",
"vitest-mock-extended": "^1.3.1"
},
"engines": {
Expand Down
Loading

0 comments on commit 4516718

Please sign in to comment.