Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Sets up a Groq local development loop with a memoized client, model constants, and mocked plus live test tiers.
52% 91%+39 ptsof test cases passed
Passed 21 of 23 test cases with the skill, and 12 of 23 without it.
What specific environment variable flag is used to conditionally enable live API integration testing in the Groq local dev loop setup?
uses GROQ_INTEGRATION
3 of 3 safety checks passed
Complete code for the project scaffold, singleton client, model constants, and environment template. The SKILL.md shows the lean skeleton; this file is the full walkthrough.
my-groq-project/
├── src/
│ ├── groq/
│ │ ├── client.ts # Singleton Groq client
│ │ ├── models.ts # Model constants and selection
│ │ └── completions.ts # Completion wrappers
│ └── index.ts
├── tests/
│ ├── groq.test.ts # Unit tests with mocks
│ └── groq.integration.ts # Live API tests (CI-only)
├── .env.local # Local secrets (git-ignored)
├── .env.example # Template for team
└── package.json
{
"scripts": {
"dev": "tsx watch src/index.ts",
"test": "vitest",
"test:watch": "vitest --watch",
"test:integration": "GROQ_INTEGRATION=1 vitest tests/groq.integration.ts"
},
"dependencies": {
"groq-sdk": "^0.12.0"
},
"devDependencies": {
"tsx": "^4.0.0",
"vitest": "^2.0.0"
Next to this one in the catalogue, plus more from the same author.