New:Socket for Asana Is Now Available.Learn more
Get Started

@mergifyio/vitest

Package Overview
Dependencies
Maintainers
3
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mergifyio/vitest

Vitest reporter for Mergify CI Insights

latest
Source
npmnpm
Version
0.3.4
Version published
Maintainers
3
Created
Source

@mergifyio/vitest

A Vitest reporter that integrates seamlessly with Mergify, uploading OpenTelemetry traces of test executions to Mergify CI Insights, along with optional quarantine and flaky-test detection.

More information at https://mergify.com

Installation

Install the package as a dev dependency alongside vitest (>= 3.0.0):

npm install --save-dev @mergifyio/vitest

Usage

Register MergifyReporter in your vitest.config.ts:

import { defineConfig } from 'vitest/config';
import MergifyReporter from '@mergifyio/vitest';

export default defineConfig({
  test: {
    reporters: ['default', new MergifyReporter()],
  },
});

Set MERGIFY_TOKEN in your CI environment so the reporter can upload test traces. Without it, the reporter stays silent and tests run normally.

Environment variables

VariableDescriptionDefault
MERGIFY_TOKENMergify API authentication token(required)
MERGIFY_API_URLMergify API endpointhttps://api.mergify.com
VITEST_MERGIFY_ENABLEForce-enable outside CIfalse
MERGIFY_CI_DEBUGPrint spans to console instead of uploadingfalse
MERGIFY_TRACEPARENTW3C distributed trace context

For detailed documentation, see the official guide.

Development

Clone the repo and install dependencies:

pnpm install

Available scripts (from this package's directory or with pnpm --filter @mergifyio/vitest):

CommandWhat it does
pnpm testRun the test suite once (vitest run)
pnpm run buildBundle the package with tsdown

Keywords

vitest

FAQs

Package last updated on 07 Aug 2026

Related posts