OpenParable
Skip to content
← Back to skills

Run Affected Test File In Isolation And In Co Run With Its Test

Testing & Quality
run-affected-test-file-in-isolation-and-in-co-run-with-its-test-

Run Affected Test File In Isolation And In Co Run With Its Test is an Agent Skill for testing & quality published in the ZaxbyHub/opencode-swarm repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

run affected test file in isolation AND in co-run with its test-suite peers after mock cleanup changes

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/ZaxbyHub/opencode-swarm/blob/HEAD/.opencode/skills/generated/run-affected-test-file-in-isolation-and-in-co-run-with-its-test/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/run-affected-test-file-in-isolation-and-in-co-run-with-its-test, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

run affected test file in isolation AND in co-run with its test-suite peers after mock cleanup changes

Trigger

  • (no explicit trigger metadata; cluster derived from category/tags)

Required Procedure

  • run affected test file in isolation AND in co-run with its test-suite peers after mock cleanup changes

Forbidden Shortcuts

  • add top-level afterEach mock.restore without verifying co-run with sibling test files

Delegation Template

When delegating a task affected by this skill, include:

SKILLS: file:.opencode/skills/generated/run-affected-test-file-in-isolation-and-in-co-run-with-its-test-/SKILL.md

Reviewer Checks

  • Verify each required action above appears in the diff.

Test Engineer Checks

  • Add or update tests covering the trigger condition and the forbidden shortcut.

Source Knowledge IDs

  • 1b7d37db-81d1-4b0d-90ab-85a7e68f90bf — In Bun, adding afterEach(() => mock.restore()) to fix mock isolation can break co-run with sibling test files that depend on leaked mock state. Always verify both isolated and co-run behavior before committing mock cleanup changes.