๐ ๏ธ Troubleshooting โ Early CLI (early generate-pr)
This guide focuses on issues specific to the Early CLI when running in Jenkins, CircleCI, or other CI/CD environments.
For shared topics like memory crashes, token auth, Jest setup, or commit issues โ see Fundamentals Troubleshooting โ.
โ No Test Files Generatedโ
This can happen for several different reasons, ranging from configuration or permissions issues to already-covered code.
Please go through the checklist step by step in
๐ Why No Tests Were Generated
That guide explains every possible cause โ including missing CLI installation, coverage command failures, validation errors, SCM permissions, and more โ along with how to fix each one.
๐ฆ CLI Installation Fails (401 or npm auth error)โ
Likely due to GitHub Packages authentication failure.
See GitHub Packages Install Failures โ
๐ Missing or Invalid API Keyโ
See API Key Missing or Invalid โ
๐ GitHub Token Error or Git Push Failsโ
See Token Insufficient or Git Push Fails โ
๐ฅ Out of Memory Errorโ
See Node.js Heap / OOM Fixes โ
๐ซ No Test Files Generatedโ
See Testable Code Not Found โ
โ ๏ธ Jest Not Installed or Misconfiguredโ
โ ๏ธ Lint / Prettier Hook Breaks Commitโ
If commits fail due to linting or formatting rules in your repo, configure:
export LINT_COMMAND="npx --no eslint $early_filename --fix"
export PRETTIER_COMMAND="npx --no prettier $early_filename --write"
See Lint/Prettier Failures โ
๐งช Coverage Command Failsโ
See Custom Coverage Command Errors โ
โ๏ธ SCM or Git Errors in CIโ
Ensure:
- Git is installed and configured in the agent image
- Token is injected as a credential
- You are using a full clone (not shallow)