Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

VS Code extension for Vitest

License

NotificationsYou must be signed in to change notification settings

githubnext/vitest-vscode

 
 

Repository files navigation

Vitest extension for Visual Studio Code logo

Vitest extension for Visual Studio Code. Available onVisual Studio Marketplace.

Features

  • Run,debug, andwatch Vitest tests in Visual Studio Code.
  • NX support (see theNX sample).
  • An@open tag can be used when filtering tests, to only show the tests open in the editor.

Requirements

  • Visual Studio Code version >= 1.77.0.
  • Vitest version >= v1.4.0

Introduction

You can identify if your config is loaded by the extension withprocess.env.VITEST_VSCODE and change the configuration accordingly.

Configuration

  • vitest.packagePath: The path to a custom Vitest'spackage.json file. It will be used to resolve Vitest API paths.
  • vitest.nodeExecutable: This extension spawns another process and will use this value asexecPath argument.
  • vitest.nodeEnv: Environment passed to the runner process in addition toprocess.env
  • vitest.debugExclude: Excludes files matching specified glob patterns from debugging. Default:[\"<node_internals>/**\", \"**/node_modules/**\"]

FAQs (Frequently Asked Questions)

How can I use it in monorepo?

Seehttps://vitest.dev/guide/workspace.html for monorepo support.

How can I use this extension when tests are under a sub directory?

You can use VS Code commandadd folder to workspace to add the sub directory. The extension should work fine.

About

VS Code extension for Vitest

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript96.5%
  • JavaScript3.5%

[8]ページ先頭

©2009-2025 Movatter.jp