Skip to content

Commit 65ee645

Browse files
Sander Toonenclaude
andcommitted
Make the vitest 4 upgrade pass CI
The bare `vitest` bump fails `yarn install` with "could not find a copy of vite to link in node_modules/vitest/node_modules". vitest 4 now lists `vite` as a direct dependency (^6 || ^7 || ^8), so yarn 1 resolves a second vite major alongside the repo's hoisted vite ^6.0.1 and chokes on the nested link. Pin `vite` to ^6.0.1 in `resolutions` so the whole tree shares a single vite 6.x (in range for vitest, and what the build used). Also: - Bump `@vitest/coverage-v8` and `@vitest/ui` to ^4.1.0 to match the vitest 4 runtime (Dependabot only bumped `vitest` itself). - Add "node" to the core package's tsconfig `types`. vitest 4's `vitest/globals` no longer transitively pulls in @types/node, which broke type-checking of test files (`import assert from 'assert'`). The datetime and mcp-server tsconfigs already list "node". yarn install --frozen-lockfile, lint, build, type-check, the full test suite, and coverage all pass locally. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent e23b645 commit 65ee645

6 files changed

Lines changed: 68 additions & 366 deletions

File tree

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
"vitest": "^4.1.0"
3737
},
3838
"resolutions": {
39-
"ip-address": "^10.1.1"
39+
"ip-address": "^10.1.1",
40+
"vite": "^6.0.1"
4041
}
4142
}

packages/expreszo-datetime/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
},
4848
"devDependencies": {
4949
"@types/luxon": "^3.4.0",
50-
"@vitest/coverage-v8": "^3.2.4",
50+
"@vitest/coverage-v8": "^4.1.0",
5151
"@types/node": "^24.5.2",
5252
"cross-env": "^7.0.3",
5353
"rimraf": "^5.0.10",

packages/expreszo-mcp-server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
},
4949
"devDependencies": {
5050
"@types/node": "^24.5.2",
51-
"@vitest/coverage-v8": "^3.2.4",
51+
"@vitest/coverage-v8": "^4.1.0",
5252
"cross-env": "^7.0.3",
5353
"rimraf": "^5.0.10",
5454
"tsx": "^4.20.5",

packages/expreszo/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@
120120
"@rollup/plugin-typescript": "^12.1.4",
121121
"@types/node": "^24.5.2",
122122
"@typescript/native-preview": "^7.0.0-dev.20250920.1",
123-
"@vitest/coverage-v8": "^3.2.4",
124-
"@vitest/ui": "^3.2.4",
123+
"@vitest/coverage-v8": "^4.1.0",
124+
"@vitest/ui": "^4.1.0",
125125
"cross-env": "^7.0.3",
126126
"eslint": "^9.15.0",
127127
"eslint-plugin-import": "^2.32.0",

packages/expreszo/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"outDir": "./dist",
55
"rootDir": "./",
66
"tsBuildInfoFile": "./dist/.tsbuildinfo",
7-
"types": ["vitest/globals"]
7+
"types": ["vitest/globals", "node"]
88
},
99
"include": [
1010
"src/**/*",

0 commit comments

Comments
 (0)