Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

`vp test --help` omits Vitest 5 CLI options (`--repeats`, `--fsModuleCache`, `--sharedViteServer`, ...)

Abierto Apto para principiantes
#2,804 0 comentarios 1 reacción 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
75/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
nodejs, typescript

Línea de trabajo

El texto de ayuda está en packages/cli/src/help.ts. Compare las opciones de CLI listadas allí con la cliOptionsConfig del vitest@5.0.1 incluido para identificar opciones faltantes como --repeats y --fsModuleCache. Actualice la lista de ayuda y corrija la descripción de --clearCache. Verifique ejecutando vp test --help y comprobando que aparezcan las nuevas opciones.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Describe the bug

vp test --help prints a static option list (packages/cli/src/help.ts) that has not caught up with Vitest 5. These top-level CLI options defined by the bundled vitest@5.0.1 (cliOptionsConfig) are missing from the help, although vp test forwards them and they work:

  • --repeats <number>: repeat every test a number of times regardless of the result
  • --injectCjsGlobals
  • --fsModuleCache
  • --fsModuleCachePath <path>
  • --sharedViteServer

Also, the --clearCache description still says it deletes caches "including experimental.fsModuleCache". In Vitest 5 that option is the top-level fsModuleCache.

For example, vp test --repeats 3 runs every test four times as expected, but a user reading vp test --help has no way to discover the flag.

Reproduction

Any Vite+ 1.0.0-rc.0 project with tests.

Steps to reproduce
  1. vp test --help | grep -E 'repeats|fsModuleCache|sharedViteServer|injectCjsGlobals': only the --clearCache line (with the old experimental. name) matches.
  2. vp test --repeats 1: the flag is accepted and every test runs twice.
System Info
vite-plus 1.0.0-rc.0 (global and local), bundled vitest 5.0.1
Node.js 24.20.0, pnpm 11.25.0, macOS (darwin arm64)
Used Package Manager

pnpm

Logs

No response

Validations
  • Read the Contributing Guidelines.
  • Check that there isn't already an issue for the same bug.
  • Confirm this is a Vite+ issue and not an upstream issue (Vitest's own cliOptionsConfig defines these options; the gap is in Vite+'s help list).
  • The provided reproduction is a minimal reproducible example.
Lenguaje dominante
Rust
Estrellas
5.8k
Forks
263
Merge medio
1 d 3 h
PR fusionados (30 d)
147

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de voidzero-dev/vite-plus

Todos los issues de voidzero-dev/vite-plus

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.