Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"packageManager": "pnpm@11.24.0",
"devDependencies": {
"vite-plus": "latest",
"@vitest/browser-playwright": "5.0.4",
"@vitest/browser-playwright": "5.0.5",
"playwright": "1.57.0",
"typescript": "7.0.2"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "module",
"devDependencies": {
"vite-plus": "latest",
"@vitest/coverage-v8": "5.0.4",
"@vitest/coverage-istanbul": "5.0.4"
"@vitest/coverage-v8": "5.0.5",
"@vitest/coverage-istanbul": "5.0.5"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"name": "test-v5-install-managers",
"private": true,
"type": "module",
"devDependencies": { "vite-plus": "latest", "vitest": "5.0.4" }
"devDependencies": { "vite-plus": "latest", "vitest": "5.0.5" }
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ steps = [
{ argv = ["vpt", "json-edit", "package.json", "packageManager", "npm@10.9.4"], snapshot = false },
# Match the bundled runner throughout npm's peer graph. Otherwise newer
# Vitest patches reached through optional peers can crash npm 10's resolver.
{ argv = ["vpt", "json-edit", "package.json", "overrides.vitest", "5.0.4"], snapshot = false },
{ argv = ["vpt", "json-edit", "package.json", "overrides.@vitest/browser", "5.0.4"], snapshot = false },
{ argv = ["vpt", "json-edit", "package.json", "overrides.vitest", "5.0.5"], snapshot = false },
{ argv = ["vpt", "json-edit", "package.json", "overrides.@vitest/browser", "5.0.5"], snapshot = false },
{ argv = ["vp", "install", "--ignore-scripts", "--", "--no-audit", "--no-fund"], snapshot = false, timeout = 180000 },
["vp", "test", "run"],
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
## `vpt json-edit package.json packageManager npm@10.9.4`


## `vpt json-edit package.json overrides.vitest 5.0.4`
## `vpt json-edit package.json overrides.vitest 5.0.5`


## `vpt json-edit package.json overrides.@vitest/browser 5.0.4`
## `vpt json-edit package.json overrides.@vitest/browser 5.0.5`


## `vp install --ignore-scripts -- --no-audit --no-fund`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "module",
"devDependencies": {
"vite-plus": "latest",
"@vitest/ui": "5.0.4",
"@vitest/ui": "5.0.5",
"jsdom": "27.2.0",
"happy-dom": "20.0.10",
"temporal-polyfill": "1.0.4"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ Known upstream regression introduced in Vitest 4.1.1 and still present in 5.0.1,
```
Browser runner started at http://localhost:<port>/__vitest_test__/?sessionId=<uuid>
Known upstream regression since Vitest 4.1.1: Preview locator clicks fail with real timers in 5.0.4
Known upstream regression since Vitest 4.1.1: Preview locator clicks fail with real timers in 5.0.5
```
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# The community provider accepts newer @vitest/browser patches. Keep this
# fixture on the bundled runner's version when testing the packed package.
overrides:
'@vitest/browser': 5.0.4
vitest: 5.0.4
'@vitest/browser': 5.0.5
vitest: 5.0.5
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,5 @@ try {
assert.equal(runner.state.getCountOfFailedTests(), 0, JSON.stringify(runner.state.getFiles().flatMap((file) => [file.result, ...file.tasks.map((task) => task.result)])));
assert.equal(runner.state.getFiles().length, 1);
assert.ok(sessionOpened);
console.log('WebDriverIO 5.0.0 with Vitest 5.0.4: runner/context identity, real-timer clicks, session URLs, and serialized custom-command locators passed');
console.log(`WebDriverIO 5.0.0 with Vitest ${runner.version}: runner/context identity, real-timer clicks, session URLs, and serialized custom-command locators passed`);
} finally { await runner.close(); }
2 changes: 1 addition & 1 deletion docs/guide/migrate.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ View and copy this prompt into your coding agent to upgrade an existing Vite+ 0.

### Vitest

Vitest is automatically migrated through `vp migrate`. `vite-plus` re-exports upstream `vitest@5.0.4` under `vite-plus/test*`, so for node-mode tests a single `vite-plus` install is enough — you no longer need to install `vitest` directly.
Vitest is automatically migrated through `vp migrate`. `vite-plus` re-exports upstream `vitest@5.0.5` under `vite-plus/test*`, so for node-mode tests a single `vite-plus` install is enough — you no longer need to install `vitest` directly.

For browser mode, you can use the base browser runtime (`@vitest/browser`) and Preview provider (`@vitest/browser-preview`) included in `vite-plus`. To use Playwright or WebDriverIO, you also need the opt-in provider (`@vitest/browser-playwright` or `@vitest/browser-webdriverio`) and its framework peer (`playwright` or `webdriverio`).

Expand Down
2 changes: 1 addition & 1 deletion docs/guide/test.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

`vp test` runs tests with [Vitest](https://vitest.dev).

Vite+ depends on Vitest `5.0.4`, which requires Node `^22.18.0 || ^24.11.0 || >=26.0.0`. For existing projects, follow [Upgrade to Vitest 5](./vitest-v5.md) before updating dependencies.
Vite+ depends on Vitest `5.0.5`, which requires Node `^22.18.0 || ^24.11.0 || >=26.0.0`. For existing projects, follow [Upgrade to Vitest 5](./vitest-v5.md) before updating dependencies.

`vp test` resolves Vitest from `vite-plus`'s dependencies first, then from your project.

Expand Down
4 changes: 2 additions & 2 deletions docs/guide/vitest-v5.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Upgrade to Vitest 5

Vite+ bundles Vitest `5.0.4`. Use Node `^22.18.0 || ^24.11.0 || >=26.0.0` for the CLI and tests.
Vite+ bundles Vitest `5.0.5`. Use Node `^22.18.0 || ^24.11.0 || >=26.0.0` for the CLI and tests.

## Before you migrate

Expand Down Expand Up @@ -126,7 +126,7 @@ Review calls with benchmark options, imported or reassigned callbacks, callback

## Entry points and packages

Use `vite-plus/test` for assertions and supported runner APIs. Keep coverage providers and `@vitest/ui` at the bundled runner's exact version, `5.0.4`. Keep `@vitest/web-worker` aligned when your project uses it.
Use `vite-plus/test` for assertions and supported runner APIs. Keep coverage providers and `@vitest/ui` at the bundled runner's exact version, `5.0.5`. Keep `@vitest/web-worker` aligned when your project uses it.

| v4 import | v5 import or action |
| ---------------------------------------- | --------------------------------------------------------------------------- |
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/utils/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const VITE_CONFIG_FILES = [
'vite.config.cts',
] as const;

export const VITEST_VERSION = '5.0.4';
export const VITEST_VERSION = '5.0.5';

// Exact action release used by generated workflows and the @v1 migration.
// The Renovate custom manager keeps this value current.
Expand Down
Loading
Loading