Labcoat.Vitest 1.2.2

dotnet add package Labcoat.Vitest --version 1.2.2
                    
NuGet\Install-Package Labcoat.Vitest -Version 1.2.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Labcoat.Vitest" Version="1.2.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Labcoat.Vitest" Version="1.2.2" />
                    
Directory.Packages.props
<PackageReference Include="Labcoat.Vitest" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Labcoat.Vitest --version 1.2.2
                    
#r "nuget: Labcoat.Vitest, 1.2.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Labcoat.Vitest@1.2.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Labcoat.Vitest&version=1.2.2
                    
Install as a Cake Addin
#tool nuget:?package=Labcoat.Vitest&version=1.2.2
                    
Install as a Cake Tool

Labcoat.Vitest

Runs the Vitest tests of your JavaScript / TypeScript projects in Labcoat, next to your .NET tests: the same test tree, live results, warm reruns, watch mode, failure diffs and coverage.

In an Aspire AppHost

dotnet add MyApp.AppHost package Labcoat.Aspire.Hosting
dotnet add MyApp.AppHost package Labcoat.Vitest

With the package referenced, AddLabcoat finds Vitest projects (a folder with a vitest.config.*, or a package.json that depends on vitest) next to the .NET test projects. Choose the runners per resource with WithRunners:

builder.AddLabcoat("tests");                                    // .NET and Vitest
builder.AddLabcoat("dotnet-tests").WithRunners("dotnet");       // .NET only
builder.AddLabcoat("web-tests").WithRunners("vitest")           // Vitest only
       .WithTestProject("../web");

With the Labcoat tool

labcoat --runners dotnet,vitest

The tool fetches this package (in its own version) the first time a runner is asked for.

Requirements

  • Node.js 20 or later on PATH.
  • Vitest 5 or later installed in the project (npm install, pnpm install or yarn); Labcoat uses the project's own Vitest.
  • Coverage: a Vitest coverage provider such as @vitest/coverage-v8.

More in docs/runners.md.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.2.2 83 11/1/2026
1.2.1 81 11/1/2026
1.2.0 80 11/1/2026