Handling nuxi testing errors

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

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

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

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.

Description

enhancement

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.
Dominant language
TypeScript
Stars
402
Forks
125
Avg merge
2d 9h
Merged PRs (30d)
37

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

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.

More from nuxt/cli

All issues in nuxt/cli

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.