Skip to content

Integrate vitest complete #2953

Open

Description

@liangmiQwQ

Vitest 5 introduces a new command vitest complete. This is used to setup shell auto complete.

Vite+ has env files and modified shellrc script, it would be good if it could be integrated into global cli.

Currently, its output hard writes vitest as command entry, we may communite with Vitest team to know how to make it work for Vite+.

Activity

  1. RSS1102 commented on Oct 13, 2026

    @RSS1102
    Contributor

    It seems like vitest complete -- … is used to implement Tab completion for vp test? Of course, this might require communication with the vitest team, or there might be a stable interface for inheritance and use.

  2. RSS1102 commented on Oct 14, 2026

    @RSS1102
    Contributor

    waiting vitest‘ team confirm vitest-dev/vitest#11579

  3. RSS1102 commented on Oct 19, 2026

    @RSS1102
    Contributor

    After receiving help from the vitest team, I will try to implement this using vitest createCLI()
    —— still in the exploratory stage.

    vitest-dev/vitest#11579 (comment)

  4. liangmiQwQ commented on Oct 23, 2026

    @liangmiQwQ
    CollaboratorAuthor

    thank you so much for exploring the solution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions