vitest

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 10, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package vitest wraps `<pm exec> vitest run --reporter=json`. Whole-run gate: a test broken by your change may live in an untouched file, so findings are never suppressed by scoping.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseReport

func ParseReport(raw []byte) ([]domain.Finding, error)

ParseReport reads vitest's json report and returns one Finding per failed assertion. First `file.ts:line:col` frame in failureMessages is used as the finding location; the test file name is the fallback.

Types

type Gate

type Gate struct{}

func (Gate) LineScoped

func (Gate) LineScoped() bool

func (Gate) Name

func (Gate) Name() string

func (Gate) Run

func (Gate) Run(ctx context.Context, root string) (domain.GateResult, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL