mirror of
https://github.com/hanzoai/vitest.git
synced 2026-09-24 17:04:25 +00:00
feat!: require Node.js 22 and Vite 6.4 (#10178)
This commit is contained in:
@@ -88,7 +88,7 @@ jobs:
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest]
|
||||
node_version: [20, 22, 24]
|
||||
node_version: [22, 24]
|
||||
include:
|
||||
- os: macos-latest
|
||||
node_version: 24
|
||||
|
||||
@@ -60,7 +60,7 @@ Next generation testing framework powered by Vite.
|
||||
- Reporting Uncaught Errors
|
||||
- Run your tests in the browser natively
|
||||
|
||||
> Vitest requires Vite >=v6.0.0 and Node >=v20.0.0
|
||||
> Vitest requires Vite >=v6.4.0 and Node >=v22.12.0
|
||||
|
||||
```ts
|
||||
import { assert, describe, expect, it } from 'vitest'
|
||||
|
||||
+1
-1
@@ -39,7 +39,7 @@ bun add -D vitest
|
||||
:::
|
||||
|
||||
:::tip
|
||||
Vitest requires Vite >=v6.0.0 and Node >=v20.0.0
|
||||
Vitest requires Vite >=v6.4.0 and Node >=v22.12.0
|
||||
:::
|
||||
|
||||
It is recommended that you install a copy of `vitest` in your `package.json`, using one of the methods listed above. However, if you would prefer to run `vitest` directly, you can use `npx vitest` (the `npx` tool comes with npm and Node.js).
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@
|
||||
"packageManager": "[email protected]",
|
||||
"description": "Next generation testing framework powered by Vite",
|
||||
"engines": {
|
||||
"node": "^20.0.0 || ^22.0.0 || >=24.0.0"
|
||||
"node": "^22.12.0 || ^24.0.0 || >=26.0.0"
|
||||
},
|
||||
"scripts": {
|
||||
"ci": "ni && nr typecheck && nr lint && nr build && nr test:ci",
|
||||
|
||||
@@ -107,7 +107,7 @@
|
||||
"dist"
|
||||
],
|
||||
"engines": {
|
||||
"node": "^20.0.0 || ^22.0.0 || >=24.0.0"
|
||||
"node": "^22.12.0 || ^24.0.0 || >=26.0.0"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "premove dist && rollup -c",
|
||||
@@ -116,7 +116,7 @@
|
||||
"peerDependencies": {
|
||||
"@edge-runtime/vm": "*",
|
||||
"@opentelemetry/api": "^1.9.0",
|
||||
"@types/node": "^20.0.0 || ^22.0.0 || >=24.0.0",
|
||||
"@types/node": "^22.0.0 || >=24.0.0",
|
||||
"@vitest/browser-playwright": "workspace:*",
|
||||
"@vitest/browser-preview": "workspace:*",
|
||||
"@vitest/browser-webdriverio": "workspace:*",
|
||||
@@ -125,7 +125,7 @@
|
||||
"@vitest/ui": "workspace:*",
|
||||
"happy-dom": "*",
|
||||
"jsdom": "*",
|
||||
"vite": "^6.0.0 || ^7.0.0 || ^8.0.0"
|
||||
"vite": "^6.4.0 || ^7.0.0 || ^8.0.0"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"@edge-runtime/vm": {
|
||||
@@ -184,7 +184,6 @@
|
||||
"tinyexec": "^1.0.2",
|
||||
"tinyglobby": "catalog:",
|
||||
"tinyrainbow": "catalog:",
|
||||
"vite": "^6.0.0 || ^7.0.0 || ^8.0.0",
|
||||
"why-is-node-running": "^2.3.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
@@ -217,6 +216,7 @@
|
||||
"prompts": "^2.4.2",
|
||||
"strip-literal": "catalog:",
|
||||
"tinyhighlight": "catalog:",
|
||||
"vite": "^6.4.0 || ^7.0.0 || ^8.0.0",
|
||||
"ws": "catalog:"
|
||||
}
|
||||
}
|
||||
|
||||
Generated
+3
-3
@@ -1098,9 +1098,6 @@ importers:
|
||||
tinyrainbow:
|
||||
specifier: 'catalog:'
|
||||
version: 3.1.0
|
||||
vite:
|
||||
specifier: 8.0.11
|
||||
version: 8.0.11(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])
|
||||
why-is-node-running:
|
||||
specifier: ^2.3.0
|
||||
version: 2.3.0
|
||||
@@ -1192,6 +1189,9 @@ importers:
|
||||
tinyhighlight:
|
||||
specifier: 'catalog:'
|
||||
version: 0.3.2([email protected])
|
||||
vite:
|
||||
specifier: 8.0.11
|
||||
version: 8.0.11(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])
|
||||
ws:
|
||||
specifier: 'catalog:'
|
||||
version: 8.19.0
|
||||
|
||||
Reference in New Issue
Block a user