This tool manages a local Verdaccio registry to isolate package publishing and installation workflows during testing.
Install
mkdir -p .claude/skills/integration-tests && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/5263" && unzip -o skill.zip -d .claude/skills/integration-tests && rm skill.zipInstalls to .claude/skills/integration-tests
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Run the integration-tests pipeline that depends on a local npm registry (Verdaccio). Use when asked to execute integration tests or local publish workflows in this repo.Key capabilities
- →Spins up isolated local npm registry (Verdaccio)
- →Automates build, reset, and publish pipeline steps
- →Validates dependency installation paths
- →Cleans up background registry processes post-test
How it works
It triggers a background npm registry process and executes a predefined bash pipeline sequence to isolate integration testing from global packages.
Inputs & outputs
When to use integration-tests
- →Running integration tests
- →Testing local npm publishing
- →Validating dependency installation
- →Debugging CI/CD pipelines
About this skill
Integration Tests
Overview
Run integration tests that require a local npm registry by starting pnpm local-npm:start in a background subprocess, executing the build/reset/publish/test pipeline in the main process, then cleanly shutting down the registry process and returning results.
Workflow
Codex execution environment
- When Codex invokes this skill, run both
pnpm local-npm:startand the main pipeline outside the Codex sandbox by default (sandbox_permissions=require_escalated). The integration suites install dependencies inside fixture projects withnpm install,bun install, Deno, Wrangler, local emulators, Docker, and other subprocesses; running them inside the Codex sandbox can cause environment-only failures such asnpmEPERMwriting to~/.npm/_cacache/tmpor BunPermissionDeniedwriting to its tempdir. - Use sandboxed execution only when the user explicitly asks for it. If a sandboxed run fails during dependency installation or temp/cache writes, rerun the same exact pipeline outside the sandbox before classifying the failure as repo-induced.
- Still keep the registry lifecycle local to the run: start Verdaccio before the pipeline and stop it after the pipeline, even when a failure occurs.
1. Start the local registry (subprocess)
- Start a background process with
pnpm local-npm:startand keep its session id so it can be stopped later. - Wait until the registry is ready (look for a Verdaccio listen message or the default
http://localhost:4873line). If no explicit ready line appears, wait a few seconds and proceed. - If the port is already in use, note that an existing registry may be running and proceed only if it matches the expected local registry; otherwise stop it and restart.
2. Run the main pipeline (main process)
Run this exact sequence in the main process and capture the output:
pnpm i && pnpm build:ci && pnpm local-npm:reset && pnpm local-npm:publish && OPENAI_AGENTS_RUN_STORAGE_MOUNT_INTEGRATION=1 pnpm test:integration
-
Use
pnpm build:cihere so the skill validates the same serialized build path that GitHub Actions now uses, while still running the normalprebuildandpostbuildlifecycle steps. -
Run
pnpm test:integrationwithOPENAI_AGENTS_RUN_STORAGE_MOUNT_INTEGRATION=1so the optional sandbox storage mount coverage runs by default when this skill is used. This enables the local Azurite and MinIO smoke tests without changing the repository's plainpnpm test:integrationdefault. -
Return the full success/failure outcome and a concise summary of the results.
-
Always capture the stdout/stderr from
pnpm test:integrationand include it in the final response (trim obvious noise if extremely long) inside a fenced code block. -
Do not use watch mode.
If pnpm local-npm:publish fails
Troubleshoot using integration-tests/README.md, which lists the canonical recovery steps. If time is short, prioritize the fixes in the order given there and surface the exact error text in your response.
3. Clean up the registry process
- Send Ctrl+C to the registry subprocess and wait for it to exit.
- If it does not exit, terminate it by PID and confirm the port is free before finishing.
Output expectations
- Always include the integration test results in the response.
- If any step fails, include the failing command, the error output summary, and the next recommended action.
When not to use it
- →For tests requiring real production API connectivity
- →In environments where background subprocesses are blocked
Prerequisites
Limitations
- →Requires local machine privileges to manage background processes
- →Dependent on consistent behavior of Verdaccio local registry
How it compares
It manages the lifecycle of local infrastructure to avoid environmental pollution, distinct from simple unit test execution.
Compared to similar skills
integration-tests side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| integration-tests (this skill) | 1 | 3mo | Review | Advanced |
| perf-lighthouse | 13 | 5mo | Review | Intermediate |
| smoke-test | 6 | 4mo | Review | Beginner |
| 1k-dev-commands | 2 | 28d | Review | Beginner |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by openai
View all by openai →You might also like
perf-lighthouse
tech-leads-club
Run Lighthouse audits locally via CLI or Node API, parse and interpret reports, set performance budgets. Use when measuring site performance, understanding Lighthouse scores, setting up budgets, or integrating audits into CI. Triggers on: lighthouse, run lighthouse, lighthouse score, performance audit, performance budget.
smoke-test
mastra-ai
Create a Mastra project using create-mastra and smoke test the studio in Chrome
1k-dev-commands
OneKeyHQ
Development commands — yarn scripts for dev servers, building, linting, testing, and troubleshooting.
instantly-ci-integration
jeremylongshore
Configure Instantly CI/CD integration with GitHub Actions and testing. Use when setting up automated testing, configuring CI pipelines, or integrating Instantly tests into your build process. Trigger with phrases like "instantly CI", "instantly GitHub Actions", "instantly automated tests", "CI instantly".
groq-ci-integration
jeremylongshore
Configure Groq CI/CD integration with GitHub Actions and testing. Use when setting up automated testing, configuring CI pipelines, or integrating Groq tests into your build process. Trigger with phrases like "groq CI", "groq GitHub Actions", "groq automated tests", "CI groq".
obsidian-ci-integration
jeremylongshore
Set up GitHub Actions CI/CD for Obsidian plugin development. Use when automating builds, tests, and releases for your plugin, or setting up continuous integration for Obsidian projects. Trigger with phrases like "obsidian CI", "obsidian github actions", "obsidian automated build", "obsidian CI/CD".