Skip to content

Commit

Permalink
Upgrade the vitest package
Browse files Browse the repository at this point in the history
  • Loading branch information
nazarhussain committed Dec 5, 2023
1 parent 063bacc commit f25a8c7
Show file tree
Hide file tree
Showing 4 changed files with 288 additions and 115 deletions.
14 changes: 6 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@
"@types/sinon-chai": "^3.2.9",
"@typescript-eslint/eslint-plugin": "6.7.2",
"@typescript-eslint/parser": "6.7.2",
"@vitest/browser": "1.0.0-beta.4",
"@vitest/coverage-v8": "1.0.0-beta.4",
"@vitest/coverage-v8": "^1.0.1",
"@vitest/browser": "^1.0.1",
"c8": "^8.0.1",
"chai": "^4.3.8",
"chai-as-promised": "^7.1.1",
Expand All @@ -67,7 +67,7 @@
"eslint-plugin-mocha": "^10.2.0",
"eslint-plugin-prettier": "^5.0.0",
"https-browserify": "^1.0.0",
"jsdom": "^22.1.0",
"jsdom": "^23.0.1",
"karma": "^6.4.2",
"karma-chai": "^0.1.0",
"karma-chrome-launcher": "^3.2.0",
Expand Down Expand Up @@ -96,20 +96,18 @@
"ts-node": "^10.9.1",
"typescript": "^5.2.2",
"typescript-docs-verifier": "^2.5.0",
"vite": "^5.0.5",
"vite-plugin-node-polyfills": "^0.17.0",
"vite-plugin-top-level-await": "^1.3.1",
"vitest": "1.0.0-beta.4",
"vite": "^5.0.4",
"vitest-when": "^0.2.0",
"vitest": "^1.0.1",
"vitest-when": "^0.3.0",
"wait-port": "^1.1.0",
"webdriverio": "^8.24.6",
"webpack": "^5.88.2"
},
"resolutions": {
"dns-over-http-resolver": "^2.1.1",
"chai": "^4.3.10",
"vitest-when/vitest": "1.0.0-beta.4",
"vitest@>=0.31.0 <1.0.0": "1.0.0-beta.4",
"loupe": "^2.3.6"
}
}
2 changes: 1 addition & 1 deletion packages/prover/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"test": "yarn test:unit && yarn test:e2e",
"test:unit": "vitest --run --dir test/unit/ --coverage",
"test:browsers": "yarn test:browsers:chrome && yarn test:browsers:firefox && yarn test:browsers:electron",
"test:browsers:chrome": "DEBUG=* vitest --run --browser chrome --config ./vitest.browser.config.ts --dir test/unit",
"test:browsers:chrome": "vitest --run --browser chrome --config ./vitest.browser.config.ts --dir test/unit",
"test:browsers:firefox": "vitest --run --browser firefox --config ./vitest.browser.config.ts --dir test/unit",
"test:browsers:electron": "echo 'Electron tests will be introduced back in the future as soon vitest supports electron.'",
"test:e2e": "LODESTAR_PRESET=minimal vitest --run --poolOptions.threads.singleThread --dir test/e2e",
Expand Down
3 changes: 1 addition & 2 deletions vitest.base.browser.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default defineConfig({
plugins: [
topLevelAwait(),
nodePolyfills({
include: ["buffer", "process", "util", "string_decoder", "url", "querystring"],
include: ["buffer", "process", "util", "string_decoder", "url", "querystring", "events"],
globals: {Buffer: true, process: true},
protocolImports: true,
}),
Expand Down Expand Up @@ -44,7 +44,6 @@ export default defineConfig({
resolve: {
alias: {
"node:perf_hooks": path.join(__dirname, "scripts/vitest/polyfills/perf_hooks.js"),
events: "eventemitter3",
},
},
});
Loading

0 comments on commit f25a8c7

Please sign in to comment.