Skip to content

Provide nuxt module #2044

@tobiasdiez

Description

@tobiasdiez

Clear and concise description of the problem

If one uses vitest with nuxt, one encounters a couple of issues:

  • alias are not resolved correctly
  • auto-import of components is not working
  • config needs to be specified in vite.config.ts instead of nuxt.config.ts

Suggested solution

Provide a Nuxt module that takes care of these issues by forwarding the nuxt config to vitest.

Alternative

Manual config with workarounds such as https://github.com/nuxt/framework/discussions/5379#discussioncomment-2942984

Additional context

No response

Validations

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