All skills
paulrberg avatar

/vitest

@56b7c32
by Paul Bergpaulrberg/agent-skills94 stars
7

Use for Vitest in TypeScript projects (Node, bun, React/Next.js, Effect): write, run, or debug unit/component tests, mocks, testing utilities, and coverage.

Use this Skill: https://skilld.dev/gh/paulrberg/agent-skills/vitest

This session only. Nothing lands on disk.

referencestroubleshooting.md

≈321 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Troubleshooting

Reproduce with the narrowest repository command before changing configuration.

  • For a hang, use --detect-async-leaks diagnostically: it is slower and identifies resources created by a test file that remain open. Before raising a timeout, investigate unawaited work, unresolved mocks, unbounded retries, unclosed resources, and fake-timer schedulers.
  • For state that passes alone but fails in a suite, use order or --no-file-parallelism only to diagnose. Restore state where it is created and make stores, clients, caches, and stateful mocks fresh per test; serialization is not a fix.
  • For missing mocks, resolution errors, or hoisting failures, check the identity and factory rules in mocking.md against the configured aliases.
  • For discovery, check configured include/exclude, config root, selected project, and project ownership before renaming a test. Clear the Vite/Vitest cache only after evidence of stale dependency, transform, alias, or config resolution.
  • Preserve the repository reporter. Reporter availability and output shape vary by Vitest version.

See async-leak detection, CLI, and configuration.

Source: SKILL.md on GitHub

No alertstoday3 checks · Risk SAFE
  • Gen Agent Trust Hubtoday

    The skill provides comprehensive instructions for Vitest testing workflows, including configuration, mocking, and troubleshooting. It uses standard developer tools and refers to official Vitest documentation. A minor risk exists regarding indirect prompt injection, as the skill executes code from the repository it operates on, which is typical for development-oriented agents.

  • Sockettoday

    No alerts

  • Snyktoday

    Risk: LOW · No issues

Signed by skilld at 56b7c32. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 2 weeks ago

README badge

README badge for paulrberg/agent-skills/vitest