nuxt / nuxt/starter

Setup tests in the Nuxt3 starter

Open
#837 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
580
Forks
199
Avg merge
1h 49m
Merged PRs (30d)
28

Description

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).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review the Nuxt3 starter structure and the referenced nuxt/test-utils pull request, then compare the example in Barbapapazes/nuxt-template-test. Done means the starter includes a test folder with a working minimal test setup that runs against the existing server.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, nuxt
Domain
testing
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.