Skip to content

Document steps to add vitest #4754

Open
@bilogic

Description

@bilogic

I tried adding vitest to my project but have this error

FAIL  tests/Example.spec.ts [ tests/Example.spec.ts ]
Error: Failed to parse source for import analysis because the content contains invalid JS syntax. Install @vitejs/plugin-vue to handle .vue files.
  Plugin: vite:import-analysis

But I already have @vitejs/plugin-vue installed and have vue() in plugins of .vitepress/config.ts

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions