这是indexloc提供的服务,不要输入任何密码
Skip to content

📚 Docs: Using turborepo with vitest #10548

@dbartholomae

Description

@dbartholomae

What is the improvement or update you wish to see?

Hi there! Unless I'm misunderstanding it, the currently documented way for using vitest with turborepo has been deprecated by vitest:
The approach recommended in the turborepo docs relies on vitest workspaces, but vitest deprecated workspaces in favour of projects.

With "projects" instead of a workspace file, the only caveat I've found so far is that the individual project vitest configs can't extend the root config anymore since they would then also inherit projects. Instead, a separate file like vitest.shared.ts is needed.

Is there any context that might help us understand?

None

Does the docs page already exist? Please link to it.

https://turborepo.com/docs/guides/tools/vitest#using-a-hybrid-approach

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: docsImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions