🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@mergifyio/vitest

Package Overview
Dependencies
Maintainers
2
Versions
6
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.0
Version published
Maintainers
2
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 04 Jun 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts