Open
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-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
orjsdom
- 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?