Skip to content

feat: add v5 wizard participation#73

Merged
johnjenkins merged 2 commits into
mainfrom
feat-wizard
Jun 13, 2026
Merged

feat: add v5 wizard participation#73
johnjenkins merged 2 commits into
mainfrom
feat-wizard

Conversation

@johnjenkins

@johnjenkins johnjenkins commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Pull request checklist

  • Tests for the changes have been added (for bug fixes / features)
  • Build (pnpm build) was run locally and passed
  • Tests (pnpm test:unit and pnpm test:e2e) were run locally and passed
  • Linting (pnpm lint) was run locally and passed

Pull request type

  • Bugfix
  • Feature
  • Refactoring (no functional changes)
  • Documentation
  • Other (please describe):

What is the current behavior?

Issue URL:

What is the new behavior?

Wizard participation for @stencil/vitest

Implements the StencilWizardPlugin interface so that @stencil/vitest integrates with the Stencil v5 CLI wizard (stencil init / stencil generate / stencil add).

init / add hook

Interactive setup that walks the user through configuring Vitest for their project:

  • Prompts for one or more named test projects (node-based or browser-based)
  • For node projects: chooses DOM environment (mock-doc / jsdom / happy-dom) and load method (source via plugin, or pre-built dist)
  • For browser projects: chooses provider (Playwright or WebdriverIO)
  • Generates a vitest.config.ts with the appropriate workspace project blocks
  • Installs required dev dependencies via nypm
  • Creates vitest-setup.ts (with the correct loader import) when needed
  • Writes test / test:<name> scripts into package.json
  • For new projects, scaffolds a starter spec file alongside each existing component

generate hook

Integrates with stencil generate so that when a new component is created, Vitest spec files are offered

Does this introduce a breaking change?

  • Yes
  • No

@johnjenkins johnjenkins merged commit 1aaa411 into main Jun 13, 2026
3 checks passed
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 1.13.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant