nuxt / nuxt/cli

Handling nuxi testing errors

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

Nobody has claimed this yet.

enhancement
Dominant language
TypeScript
Stars
399
Forks
119
Avg merge
20h 59m
Merged PRs (30d)
65

Description

Using nuxi testing without having testing packages installed causes the following behavior

2023-09-21 at 21 42 57@2x

There are multiple points about it:

  1. Along with Vitest, It asks for @nuxt/test-utils or @nuxt/test-utils-edge. can it be limited to guide users towards the stable package ?
  2. Can we handle installing these packages with a Yes/No question ?
  3. I also suggest offering direct installation for Vitest module.

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

Start with the nuxi testing command and reproduce its behavior when Vitest, @nuxt/test-utils, and @nuxt/test-utils-edge are absent. Done means the command guides users toward the stable package, asks before installing testing packages, and offers direct installation of the Vitest module.

Written by the indexing model from the issue text.

Assessment

Tech stack
nuxtjs, typescript
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.