angular / angular/angular-cli

Add support for Vitest VSCode Plugin and similar

Open
#31,734 7 comments 118 reactions 0 assignees View on GitHub
angular/build:unit-test area: @angular/build feature feature: under consideration
Dominant language
TypeScript
Stars
27k
Forks
11.8k
Avg merge
14h 23m
Merged PRs (30d)
162

Description

### Command

test

### Description

As Angular does not provide a Vitest plugin, it can't expose a `vitest.config.ts` file to 3rd party tools such as IDEs.

This means that as of today, it is impossible to use Vitest VSCode Plugin, nor WallabyJS, nor WebStorm integration etc... unless users switch to Analog plugin https://analogjs.org/docs/features/testing/vitest

### Describe the solution you'd like

_No response_

### Describe alternatives you've considered

_No response_

Contributor guide

Open the contributing guide

Research direction

Start with the `test` command and investigate how Angular currently exposes Vitest configuration to external tools. Reproduce the limitation with the Vitest VSCode Plugin, then compare the behavior with the Analog plugin mentioned in the issue. Done means the plugin and similar integrations can discover the Angular project's Vitest configuration without switching plugins.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, typescript, vscode
Domain
testing, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.