nuxt / nuxt/test-utils

nuxt server environment support

Open
#531 15 comments 53 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement vitest-environment
Dominant language
TypeScript
Stars
437
Forks
120
Avg merge
22h 52m
Merged PRs (30d)
23

Description

We currently support running composables/components in a browser-type environment (with happy-dom, and soon jsdom). But there are use cases where it might be useful to support running tests in a hybrid server environment where things like h3 utilities and nuxt ssr utilities work.

This could definitely be classed as non-essential and experimental, but we can track it here.

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 by reviewing the existing browser-type environment support described in the issue and how tests currently use happy-dom or jsdom. Define the hybrid server environment around h3 utilities and Nuxt SSR utilities; done when those utilities can be used reliably in the relevant tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
nuxtjs, typescript
Domain
backend, testing
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.