Skip to content

bug: npx vitest without run parameter causes tests to hang #5992

@KJ7LNW

Description

@KJ7LNW

Version: v3.23.14
API Provider: anthropic
Model: sonnet-3.5

What happened?

When running vitest without the run parameter, it enters watch mode and waits for user input (like pressing q to quit), causing tests to hang in the terminal.

Expected behavior

Tests should run to completion without requiring user interaction.

Steps to reproduce

  1. Navigate to a workspace directory with vitest configured
  2. Run npx vitest <relative-path-from-workspace-root> without the run parameter
  3. Observe that the test enters watch mode and waits for user input

Additional context

This issue affects the documentation in .roo/rules/rules.md which currently instructs users to run tests without the run parameter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DocumentationImprovements or additions to documentationIssue/PR - TriageNew issue. Needs quick review to confirm validity and assign labels.bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions