Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: upgrade vitest to v3 #8371

Open
wants to merge 5 commits into
base: next
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion dev/embedded-studio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
"@types/react-dom": "^19.0.3",
"@vitejs/plugin-react": "^4.3.4",
"typescript": "5.7.3",
"vite": "^5.4.14"
"vite": "^6.0.11"
}
}
2 changes: 1 addition & 1 deletion dev/test-studio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,6 @@
"@million/lint": "1.0.14",
"babel-plugin-react-compiler": "19.0.0-beta-decd7b8-20250118",
"chokidar": "^3.6.0",
"vite": "^5.4.14"
"vite": "^6.0.11"
}
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,9 @@
"semver": "^7.3.5",
"turbo": "^2.3.4",
"typescript": "5.7.3",
"vite": "^5.4.11",
"vite": "^6.0.11",
"vite-tsconfig-paths": "^4.3.2",
"vitest": "^2.1.8",
"vitest": "^3.0.3",
"yargs": "^17.3.0"
},
"optionalDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/@repo/test-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
},
"devDependencies": {
"@repo/dev-aliases": "workspace:*",
"vitest": "^2.1.8"
"vitest": "^3.0.3"
}
}
4 changes: 2 additions & 2 deletions packages/@sanity/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@
"semver": "^7.3.5",
"semver-compare": "^1.0.0",
"tar": "^6.1.11",
"vite": "^5.4.11",
"vitest": "^2.1.8",
"vite": "^6.0.11",
"vitest": "^3.0.3",
"which": "^2.0.2",
"xdg-basedir": "^4.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/@sanity/codegen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"@types/babel__traverse": "^7.20.5",
"@types/debug": "^4.1.12",
"rimraf": "^5.0.10",
"vitest": "^2.1.8"
"vitest": "^3.0.3"
},
"engines": {
"node": ">=18"
Expand Down
2 changes: 1 addition & 1 deletion packages/@sanity/migrate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"@repo/test-config": "workspace:*",
"@types/debug": "^4.1.12",
"rimraf": "^5.0.10",
"vitest": "^2.1.8"
"vitest": "^3.0.3"
},
"engines": {
"node": ">=18"
Expand Down
2 changes: 1 addition & 1 deletion packages/@sanity/mutator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,6 @@
"@types/debug": "^4.1.5",
"@types/lodash": "^4.17.7",
"rimraf": "^5.0.10",
"vitest": "^2.1.8"
"vitest": "^3.0.3"
}
}
2 changes: 1 addition & 1 deletion packages/@sanity/schema/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,6 @@
"@types/object-inspect": "^1.13.0",
"@types/react": "^19.0.7",
"rimraf": "^5.0.10",
"vitest": "^2.1.8"
"vitest": "^3.0.3"
}
}
2 changes: 1 addition & 1 deletion packages/@sanity/types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"@vitejs/plugin-react": "^4.3.4",
"react": "^18.3.1",
"rimraf": "^5.0.10",
"vitest": "^2.1.8"
"vitest": "^3.0.3"
},
"peerDependencies": {
"@types/react": "18 || 19"
Expand Down
2 changes: 1 addition & 1 deletion packages/@sanity/util/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
"@repo/package.config": "workspace:*",
"@repo/test-config": "workspace:*",
"rimraf": "^5.0.10",
"vitest": "^2.1.8"
"vitest": "^3.0.3"
},
"engines": {
"node": ">=18"
Expand Down
4 changes: 2 additions & 2 deletions packages/sanity/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@
"use-sync-external-store": "^1.2.0",
"uuid": "^11.0.5",
"valibot": "0.31.1",
"vite": "^5.4.11",
"vite": "^6.0.11",
"yargs": "^17.3.0"
},
"devDependencies": {
Expand Down Expand Up @@ -315,7 +315,7 @@
"rxjs-etc": "^10.6.2",
"styled-components": "^6.1.14",
"swr": "2.2.5",
"vitest": "2.1.8"
"vitest": "^3.0.3"
},
"peerDependencies": {
"react": "^18 || ^19.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ export async function buildVendorDependencies({
define: {'process.env.NODE_ENV': JSON.stringify('production')},

build: {
commonjsOptions: {strictRequires: 'auto'},
minify: true,
emptyOutDir: false, // Rely on CLI to do this
outDir: path.join(outputDir, VENDOR_DIR),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ describe('deriveSearchWeightsFromType', () => {
})
})

it('works for schemas that branch out a lot', () => {
it('works for schemas that branch out a lot', {timeout: 10_000}, () => {
// schema of 60 "components" with 10 fields each
const range = [...Array(60).keys()]

Expand Down
2 changes: 1 addition & 1 deletion perf/efps/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"sanity": "workspace:*",
"serve-handler": "^6.1.5",
"source-map": "^0.7.4",
"vite": "^5.4.11",
"vite": "^6.0.11",
"yargs": "17.3.0"
}
}
2 changes: 1 addition & 1 deletion perf/tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@
"esbuild": "0.21.5",
"ts-node": "^10.9.2",
"typescript": "5.7.3",
"vitest": "^2.1.8"
"vitest": "^3.0.3"
}
}
Loading
Loading