Skip to content

Commit

Permalink
fix: don't fail when running tests with coverage in a workspace
Browse files Browse the repository at this point in the history
Fixes #372, #339
  • Loading branch information
sheremet-va committed May 6, 2024
1 parent 7c036fd commit ff21cf6
Show file tree
Hide file tree
Showing 5 changed files with 287 additions and 216 deletions.
5 changes: 3 additions & 2 deletions samples/monorepo-vitest-workspace/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@
"license": "ISC",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "vitest"
},
"dependencies": {
"mime-types": "^2.1.35"
},
"devDependencies": {
"@vitest/coverage-v8": "^1.6.0",
"happy-dom": "^2.49.0",
"vitest": "^1.4.0"
"vitest": "^1.6.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,9 @@
"@types/react": "^17.0.41",
"@types/react-test-renderer": "^17.0.1",
"@vitejs/plugin-react": "1.2.0",
"@vitest/ui": "^0.34.6",
"happy-dom": "^2.49.0",
"jsdom": "latest",
"react-test-renderer": "17.0.2",
"vitest": "^1.4.0"
"react-test-renderer": "17.0.2"
},
"stackblitz": {
"startCommand": "npm run test:ui"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,9 @@
"@types/react": "^17.0.41",
"@types/react-test-renderer": "^17.0.1",
"@vitejs/plugin-react": "1.2.0",
"@vitest/ui": "^0.34.6",
"happy-dom": "^2.49.0",
"jsdom": "latest",
"react-test-renderer": "17.0.2",
"vitest": "^1.4.0"
"react-test-renderer": "17.0.2"
},
"stackblitz": {
"startCommand": "npm run test:ui"
Expand Down

0 comments on commit ff21cf6

Please sign in to comment.