Skip to content

Proposal: init test setup with Nuxi #374

Open
@rinux55

Description

@rinux55

One thing I'm really missing from nuxi is a way to quickly initialise a test setup.

My proposal is that after people have initialised a project with nuxi init, they can run a command like nuxi add tests or nuxi tests init which will start a small wizard to set up everything related to testing.

Running this command will:

  • install vitest, @nuxt/test-utils vitest-environment-nuxt
  • adds a vitest.config.ts
  • Asks to add @vue/test-utils or @testing-library/vue for unit testing
  • Asks to add happy-dom or jsdom
  • Asks to add playwright for e2e testing
  • Sets up vitest.config accordingly

I'd be down to contribute with a PR, but first I'm interested in some feedback! What do you think of this?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions