Skip to content

Commit

Permalink
Version bumps, including vitest 1.1.2
Browse files Browse the repository at this point in the history
vitest 1.1.2 includes vitest-dev/vitest#4692, fixing vitest-dev/vitest#4686.
Now the `base` config property no lonber needs the `process.env.VITEST` check,
and the tests still pass when running under the browser.

All version bumps:

- @vitest/browser: v1.1.2
- @vitest/coverage-istanbul: v1.1.2
- @vitest/coverage-v8: v1.1.2
- @vitest/ui: v1.1.2
- vitest: v1.1.2
  • Loading branch information
mbland committed Jan 4, 2024
1 parent 5ff250c commit 7b1bdf5
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 74 deletions.
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,17 @@
"bugs": "https://github.com/mbland/test-page-opener/issues",
"devDependencies": {
"@stylistic/eslint-plugin-js": "^1.5.3",
"@vitest/browser": "^1.1.1",
"@vitest/coverage-istanbul": "^1.1.1",
"@vitest/coverage-v8": "^1.1.1",
"@vitest/ui": "^1.1.1",
"@vitest/browser": "^1.1.2",
"@vitest/coverage-istanbul": "^1.1.2",
"@vitest/coverage-v8": "^1.1.2",
"@vitest/ui": "^1.1.2",
"eslint": "^8.56.0",
"eslint-plugin-jsdoc": "^46.10.1",
"eslint-plugin-vitest": "^0.3.20",
"jsdoc-cli-wrapper": "^1.0.4",
"jsdom": "^23.0.1",
"vite": "^5.0.10",
"vitest": "^1.1.1",
"vitest": "^1.1.2",
"webdriverio": "^8.27.0"
},
"dependencies": {
Expand Down
131 changes: 66 additions & 65 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,7 @@ function getProviderOptions(){
}

export default defineConfig({
// Remove process.env.VITEST hack once the following are resolved/merged:
// - https://github.com/vitest-dev/vitest/issues/4686
// - https://github.com/vitest-dev/vitest/pull/4692
base: process.env.VITEST ? undefined : '/basedir/',
base: '/basedir/',
define: {
STRCALC_BACKEND: JSON.stringify(process.env.STRCALC_BACKEND)
},
Expand Down

0 comments on commit 7b1bdf5

Please sign in to comment.