mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-06-15 05:47:18 -07:00
fix(cli): Ensure git-commit.js is generated before unit tests
Updates the 'test:ci' script in 'packages/cli/package.json' to run 'npm run generate' before 'vitest run'. This ensures that the '../../generated/git-commit.js' file, which is required by some telemetry modules, is created before unit tests attempt to import it, resolving the 'Cannot find module' error during CI runs.
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
"lint": "eslint . --ext .ts,.tsx",
|
||||
"format": "prettier --write .",
|
||||
"test": "vitest run",
|
||||
"test:ci": "vitest run",
|
||||
"test:ci": "npm run generate && vitest run",
|
||||
"typecheck": "tsc --noEmit"
|
||||
},
|
||||
"files": [
|
||||
|
||||
Reference in New Issue
Block a user