File remove-vitest-dependency.patch of Package gemini-cli
Index: gemini-cli-0.35.3/eslint.config.js
===================================================================
--- gemini-cli-0.35.3.orig/eslint.config.js
+++ gemini-cli-0.35.3/eslint.config.js
@@ -10,7 +10,6 @@ import reactPlugin from 'eslint-plugin-r
import reactHooks from 'eslint-plugin-react-hooks';
import prettierConfig from 'eslint-config-prettier';
import importPlugin from 'eslint-plugin-import';
-import vitest from '@vitest/eslint-plugin';
import globals from 'globals';
import headers from 'eslint-plugin-headers';
import path from 'node:path';
@@ -280,18 +279,6 @@ export default tseslint.config(
},
},
{
- files: ['packages/*/src/**/*.test.{ts,tsx}'],
- plugins: {
- vitest,
- },
- rules: {
- ...vitest.configs.recommended.rules,
- 'vitest/expect-expect': 'off',
- 'vitest/no-commented-out-tests': 'off',
- 'no-restricted-syntax': ['error', ...commonRestrictedSyntaxRules],
- },
- },
- {
files: ['./**/*.{tsx,ts,js,cjs}'],
plugins: {
headers,
Index: gemini-cli-0.35.3/package.json
===================================================================
--- gemini-cli-0.35.3.orig/package.json
+++ gemini-cli-0.35.3/package.json
@@ -39,10 +39,8 @@
"build:sandbox": "node scripts/build_sandbox.js",
"build:binary": "node scripts/build_binary.js",
"bundle": "npm run generate && npm run build --workspace=@google/gemini-cli-devtools && node esbuild.config.js && node scripts/copy_bundle_assets.js",
- "test": "npm run test --workspaces --if-present && npm run test:sea-launch",
- "test:ci": "npm run test:ci --workspaces --if-present && npm run test:scripts && npm run test:sea-launch",
- "test:scripts": "vitest run --config ./scripts/tests/vitest.config.ts",
- "test:sea-launch": "vitest run sea/sea-launch.test.js",
+ "test": "npm run test --workspaces --if-present",
+ "test:ci": "npm run test:ci --workspaces --if-present",
"test:always_passing_evals": "vitest run --config evals/vitest.config.ts",
"test:all_evals": "cross-env RUN_EVALS=1 vitest run --config evals/vitest.config.ts",
"test:e2e": "cross-env VERBOSE=true KEEP_OUTPUT=true npm run test:integration:sandbox:none",
@@ -98,8 +96,6 @@
"@types/react-dom": "^19.2.0",
"@types/shell-quote": "^1.7.5",
"@types/ws": "^8.18.1",
- "@vitest/coverage-v8": "^3.1.1",
- "@vitest/eslint-plugin": "^1.3.4",
"cross-env": "^7.0.3",
"depcheck": "^1.4.7",
"domexception": "^4.0.0",
@@ -130,7 +126,6 @@
"ts-prune": "^0.10.3",
"tsx": "^4.20.3",
"typescript-eslint": "^8.30.1",
- "vitest": "^3.2.4",
"yargs": "^17.7.2"
},
"dependencies": {
Index: gemini-cli-0.35.3/packages/a2a-server/package.json
===================================================================
--- gemini-cli-0.35.3.orig/packages/a2a-server/package.json
+++ gemini-cli-0.35.3/packages/a2a-server/package.json
@@ -17,8 +17,6 @@
"start": "node dist/src/http/server.js",
"lint": "eslint . --ext .ts,.tsx",
"format": "prettier --write .",
- "test": "vitest run",
- "test:ci": "vitest run --coverage",
"typecheck": "tsc --noEmit"
},
"files": [
@@ -43,8 +41,7 @@
"@types/tar": "^6.1.13",
"dotenv": "^16.4.5",
"supertest": "^7.1.4",
- "typescript": "^5.3.3",
- "vitest": "^3.1.1"
+ "typescript": "^5.3.3"
},
"engines": {
"node": ">=20"
Index: gemini-cli-0.35.3/packages/a2a-server/vitest.config.ts
===================================================================
--- gemini-cli-0.35.3.orig/packages/a2a-server/vitest.config.ts
+++ /dev/null
@@ -1,46 +0,0 @@
-/**
- * @license
- * Copyright 2025 Google LLC
- * SPDX-License-Identifier: Apache-2.0
- */
-
-/// <reference types="vitest" />
-import { defineConfig } from 'vitest/config';
-
-export default defineConfig({
- test: {
- include: ['**/*.{test,spec}.?(c|m)[jt]s?(x)'],
- exclude: ['**/node_modules/**', '**/dist/**'],
- globals: true,
- reporters: ['default', 'junit'],
- silent: true,
- outputFile: {
- junit: 'junit.xml',
- },
- coverage: {
- enabled: true,
- provider: 'v8',
- reportsDirectory: './coverage',
- include: ['src/**/*'],
- reporter: [
- ['text', { file: 'full-text-summary.txt' }],
- 'html',
- 'json',
- 'lcov',
- 'cobertura',
- ['json-summary', { outputFile: 'coverage-summary.json' }],
- ],
- },
- poolOptions: {
- threads: {
- minThreads: 8,
- maxThreads: 16,
- },
- },
- server: {
- deps: {
- inline: [/@google\/gemini-cli-core/],
- },
- },
- },
-});
Index: gemini-cli-0.35.3/packages/cli/package.json
===================================================================
--- gemini-cli-0.35.3.orig/packages/cli/package.json
+++ gemini-cli-0.35.3/packages/cli/package.json
@@ -81,8 +81,7 @@
"@types/ws": "^8.5.10",
"@types/yargs": "^17.0.32",
"@xterm/headless": "^5.5.0",
- "typescript": "^5.3.3",
- "vitest": "^3.1.1"
+ "typescript": "^5.3.3"
},
"engines": {
"node": ">=20"
Index: gemini-cli-0.35.3/packages/core/package.json
===================================================================
--- gemini-cli-0.35.3.orig/packages/core/package.json
+++ gemini-cli-0.35.3/packages/core/package.json
@@ -107,8 +107,7 @@
"@types/picomatch": "^4.0.1",
"chrome-devtools-mcp": "^0.19.0",
"msw": "^2.3.4",
- "typescript": "^5.3.3",
- "vitest": "^3.1.1"
+ "typescript": "^5.3.3"
},
"engines": {
"node": ">=20"
Index: gemini-cli-0.35.3/packages/sdk/package.json
===================================================================
--- gemini-cli-0.35.3.orig/packages/sdk/package.json
+++ gemini-cli-0.35.3/packages/sdk/package.json
@@ -14,8 +14,6 @@
"build": "node ../../scripts/build_package.js",
"lint": "eslint . --ext .ts,.tsx",
"format": "prettier --write .",
- "test": "vitest run",
- "test:ci": "vitest run",
"typecheck": "tsc --noEmit"
},
"files": [
@@ -27,8 +25,7 @@
"zod-to-json-schema": "^3.23.1"
},
"devDependencies": {
- "typescript": "^5.3.3",
- "vitest": "^3.1.1"
+ "typescript": "^5.3.3"
},
"engines": {
"node": ">=20"
Index: gemini-cli-0.35.3/packages/test-utils/package.json
===================================================================
--- gemini-cli-0.35.3.orig/packages/test-utils/package.json
+++ gemini-cli-0.35.3/packages/test-utils/package.json
@@ -12,8 +12,7 @@
"dependencies": {
"@google/gemini-cli-core": "file:../core",
"@lydell/node-pty": "1.1.0",
- "strip-ansi": "^7.1.2",
- "vitest": "^3.2.4"
+ "strip-ansi": "^7.1.2"
},
"devDependencies": {
"typescript": "^5.3.3"
Index: gemini-cli-0.35.3/packages/vscode-ide-companion/package.json
===================================================================
--- gemini-cli-0.35.3.orig/packages/vscode-ide-companion/package.json
+++ gemini-cli-0.35.3/packages/vscode-ide-companion/package.json
@@ -118,8 +118,6 @@
"watch:esbuild": "node esbuild.js --watch",
"watch:tsc": "tsc --noEmit --watch --project tsconfig.json",
"package": "vsce package --no-dependencies",
- "test": "vitest run",
- "test:ci": "vitest run --coverage",
"validate:notices": "node ./scripts/validate-notices.js"
},
"devDependencies": {
@@ -133,8 +131,7 @@
"esbuild": "^0.25.3",
"eslint": "^9.25.1",
"npm-run-all2": "^8.0.2",
- "typescript": "^5.8.3",
- "vitest": "^3.2.4"
+ "typescript": "^5.8.3"
},
"dependencies": {
"@modelcontextprotocol/sdk": "^1.23.0",
Index: gemini-cli-0.35.3/tsconfig.json
===================================================================
--- gemini-cli-0.35.3.orig/tsconfig.json
+++ gemini-cli-0.35.3/tsconfig.json
@@ -25,7 +25,7 @@
"module": "NodeNext",
"moduleResolution": "nodenext",
"target": "es2022",
- "types": ["node", "vitest/globals"],
+ "types": ["node"],
"jsx": "react-jsx"
}
}