vitest plugin: optional custom pool that embeds claude plugin test in Vitest (M7)
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 52/100
- Tipo de issue
- Funcionalidade
- Clareza
- Claramente especificada
- Status de atividade
- Ativa
- Stack de tecnologia
- typescript
- Domínio
- developer-experience, testing-qa
Direção de pesquisa
Start by checking Vitest 5's custom pool interface in vitest/node and the output from claude plugin test; the issue names no project files or tests to begin with. Write a design document covering API fit, per-test result mapping, granularity, and failure modes, then record the maintainer's decision to build or close. If built, acceptance also requires a ./pool export tested with a fake binary.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Problem
The package emulates the Claude Code mod engine in Node. The emulation can only approximate the real engine, and the project keeps two test runners for one test set: Vitest (fast, unit) and claude plugin test (real engine, integration). A mod author runs both and reads two reports.
Proposal
An optional custom Vitest pool that runs claude plugin test inside Vitest, so the same vitest run executes a test file once in the emulation and once against the real engine, with one report and one watch mode.
// vitest.config.ts (sketch)
export default defineConfig({
test: { pool: "@kwitsch/vitest-plugin-claude-code-mod/pool" },
});
Design points
- This issue starts with a spec, not code. The feature is optional and only worth a design of its own once there is demand. The first deliverable is a design document that answers the questions below; implementation follows only if the answers hold.
- Vitest's pool API. Check what Vitest 5 offers for custom pools (
vitest/nodepool interface) and how stable it is. A pool API change in a major would break the package; the peer rangevitest ^5.0.0is deliberately narrow. - Mapping results.
claude plugin testprints a text report per file. A pool needs per-test results with names, durations and failure messages. Check whether the binary has a machine-readable output; if it only prints text, parsing it is a drift risk of its own. - Granularity. The binary runs a plugin directory, not a single test file, and has 5 s per test with no control over parallelism. A pool that maps one Vitest file to one binary run may be slow or flaky.
- What it must not replace. The integration run before a release cannot be replaced by the package. A pool is a convenience for local work, not a gate.
- Demand. Record who asks for it and what the two-report workflow costs today before building it.
Scope
- Design document in the issue or in
docs/: Vitest pool API fit, result mapping, granularity, failure modes. - Decision to build or close.
- If built: a
./poolexport, tests with a fake binary, README section. A new subpath is a minor change.
Acceptance
- A design document (in
docs/or this issue) answers the questions under Design points and ends with the maintainer's decision to build or close. - If built: the
./poolexport passes its tests with a fake binary.
Relations
- Originating PR: #31
- Depends on: #34
- Linguagem predominante
- TypeScript
- Estrelas
- 0
- Forks
- 0
- Merge médio
- 29min
- PRs com merge (30d)
- 138
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de kwitsch/claude-code-plugin-tooling
-
enhancement
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
kwitsch/claude-code-plugin-tooling#219 ·
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 69/100
kwitsch/claude-code-plugin-tooling#210 ·
Mantenedores costumam responder em até 1 dia
-
enhancement
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 54/100
kwitsch/claude-code-plugin-tooling#212 ·
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 48/100
kwitsch/claude-code-plugin-tooling#209 ·
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 45/100
kwitsch/claude-code-plugin-tooling#208 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de kwitsch/claude-code-plugin-tooling
Issues semelhantes
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 67/100
makecindy/cindy#15342 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
Mantenedores costumam responder em até 1 dia
-
no-repo-link tool-submission
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 74/100
BraveOPotato/NoSignups#2618 ·
-
enhancement good first issue
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 85/100
-
bug needs-triage
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
Priyanshu-byte-coder/devtrack#4067 ·
Mantenedores costumam responder em até 1 dia