-
Notifications
You must be signed in to change notification settings - Fork 100
Open
Labels
Description
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-utilsvitest-environment-nuxt - adds a
vitest.config.ts - Asks to add
@vue/test-utilsor@testing-library/vuefor unit testing - Asks to add
happy-domorjsdom - Asks to add
playwrightfor e2e testing - Sets up
vitest.configaccordingly
I'd be down to contribute with a PR, but first I'm interested in some feedback! What do you think of this?
pi0 and shinGanganshinGangan