Skip to content

Commit

Permalink
deps: upgrade vitest to 1.4.0 (#6570)
Browse files Browse the repository at this point in the history
* Upgrade vitest to 1.4

* Add Github reporter support

* Change default reporter to verbose
  • Loading branch information
nazarhussain authored Mar 20, 2024
1 parent 556e5ec commit 7c92d20
Show file tree
Hide file tree
Showing 3 changed files with 266 additions and 178 deletions.
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,16 @@
"@types/node": "^20.11.28",
"@typescript-eslint/eslint-plugin": "^7.2.0",
"@typescript-eslint/parser": "^7.2.0",
"@vitest/coverage-v8": "^1.2.1",
"@vitest/browser": "^1.2.1",
"@vitest/coverage-v8": "^1.4.0",
"@vitest/browser": "^1.4.0",
"crypto-browserify": "^3.12.0",
"dotenv": "^16.4.1",
"dotenv": "^16.4.5",
"electron": "^26.2.2",
"eslint": "^8.57.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-vitest": "^0.3.22",
"eslint-plugin-vitest": "^0.3.26",
"https-browserify": "^1.0.0",
"jsdom": "^23.0.1",
"lerna": "^7.3.0",
Expand All @@ -76,12 +76,12 @@
"ts-node": "^10.9.2",
"typescript": "^5.4.2",
"typescript-docs-verifier": "^2.5.0",
"vite-plugin-node-polyfills": "^0.19.0",
"vite-plugin-node-polyfills": "^0.21.0",
"vite-plugin-top-level-await": "^1.4.1",
"vitest": "^1.2.1",
"vitest": "^1.4.0",
"vitest-when": "^0.3.1",
"wait-port": "^1.1.0",
"webdriverio": "^8.28.0"
"webdriverio": "^8.34.1"
},
"resolutions": {
"@puppeteer/browsers": "^2.1.0",
Expand Down
4 changes: 3 additions & 1 deletion vitest.base.unit.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ export default defineConfig({
path.join(__dirname, "./scripts/vitest/setupFiles/customMatchers.ts"),
path.join(__dirname, "./scripts/vitest/setupFiles/dotenv.ts"),
],
reporters: ["default", "hanging-process"],
reporters: process.env.GITHUB_ACTIONS
? ["verbose", "hanging-process", "github-actions"]
: ["verbose", "hanging-process"],
coverage: {
enabled: process.env.CI === "true",
clean: true,
Expand Down
Loading

0 comments on commit 7c92d20

Please sign in to comment.