nuxt / starter

Create a new Nuxt project, module, layer or start from a theme with our collection of starters.
https://nuxt.new
MIT License
448 stars 163 forks source link

Setup tests in the Nuxt3 starter #837

Open Barbapapazes opened 2 months ago

Barbapapazes commented 2 months ago

Hello,

Now that e2e testing allows to reuse the existing server (https://github.com/nuxt/test-utils/pull/803) (at least with Vitest as the test runner), I think that it could be a good think to have the test folder with an example in it.

Tests are important and majors frameworks have them ready and setup out of the box.

See https://github.com/Barbapapazes/nuxt-template-test as example (It's a simple Nuxt3 starter with the simplest tests setup).

Barbapapazes commented 2 months ago

I know that you promote the simplicity of Nuxt and the fact that it's possible to start with a very simple file architecture but maybe it could worth it to have both a very minimal starter (like the current Nuxt3) and a more robust one with tests, eslint (#416), ... wdyt?