Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

rstest-debugging

БесплатноБез исполняемых скриптовНе проверен

Diagnose Rstest startup, build, runtime, logging, memory, or performance problems using traces and comparable measurements.

rstackjsот rstackjs★ 101 звезда на GitHub

Об этом скилле

Rstest debugging

Diagnose the measured lifecycle stage before changing configuration. Keep behavior and the test manifest fixed, change one variable at a time, and remove experiments that do not produce a repeatable benefit.

Workflow

  1. Establish comparable single-file and full-scope baselines with references/performance-measurement.md.
  2. Run rstest --trace when supported and classify the cost as host build/startup, runtime load/setup/collect, test bodies/hooks, or CLI/report/teardown overhead. If assertions finish but the process hangs, try rstest run <file> --detectAsyncLeaks (v0.10.0+) and use the reported creation stack to locate missing cleanup. Remove the diagnostic flag before timing.
  3. Use DEBUG=rstest for resolved config and build output. For Rstest 0.11.7+ experimental per-test bundle coverage, follow references/performance-measurement.md. To identify which imports pull large modules into a test asset, follow Trace a large test asset to its imports. Use Rsdoctor only after evidence points to the compiler. Use verbose reporting or a profiler only after narrowing to runtime files/cases.
  4. If dependency loading or compilation is implicated, read references/dependency-bundling.md. Compare the environment default, bundleDependencies: false, and bundleDependencies: true; neither bundling nor externalization is universally faster.
  5. If a fully mocked heavy module still reaches the build graph, read references/mocked-module-build-graph.md before testing an exact external.
  6. If worker startup or repeated per-file dependency compilation dominates, use the pool comparison in references/runtime-output-memory.md to evaluate vmForks or vmThreads. Use the same reference for assets, console output, isolation, or memory.
  7. Rerun the representative file and full scope. Keep a change only when behavior, discovery, snapshots, and coverage remain valid and the benefit survives repeated measurement. Remove traces, profiles, and .rstest debug artifacts created by the diagnosis before handing off.

Guardrails

  • Use the project's installed Rstest for final claims. Label local checkout or unreleased diagnostic results separately.
  • Keep Node version, test files, coverage, cache state, environment, workers, and command shape fixed while comparing.
  • Do not add worker durations that overlap or subtract runner/build/tests values without verifying their lifecycle boundaries.
  • Do not treat aggregate process-tree RSS as physical memory; it can double-count shared pages.
  • Do not disable isolation, reduce coverage, silence failures, or change production/test semantics for a benchmark win.
  • Do not stack speculative aliases, externals, compiler hooks, pool settings, or caches. Preserve only the measured minimum.

Handoff from migration

When invoked from migrate-to-rstest, first confirm that the previous runner and Rstest execute the same files in each corresponding project. If the migration intentionally adds tests, report same-scope performance separately from final expanded-scope performance.

Полный SKILL.md на GitHub

Установить rstest-debugging в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/dependency-bundling.mdreferences/mocked-module-build-graph.mdreferences/performance-measurement.mdreferences/runtime-output-memory.mdreferences/trace-large-test-assets.md

FAQ

Что делает скилл rstest-debugging?

Diagnose Rstest startup, build, runtime, logging, memory, or performance problems using traces and comparable measurements.

Как установить скилл rstest-debugging?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл rstest-debugging запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить rstest-debugging с