@rulereplay/vitest
v0.1.0
Published
Vitest registration, reporting, filtering, and CI integration for RuleReplay
Readme
@rulereplay/vitest
Vitest registration, reporting, filtering, and receipt attachments for RuleReplay laws.
Install
npm install --save-dev @rulereplay/core @rulereplay/vitest vitestExample
import { registerRuleReplay } from '@rulereplay/vitest';
import { laws } from './laws.js';
registerRuleReplay(laws, {
runs: 200,
timeout: 30_000,
});Use RULEREPLAY_LAW, RULEREPLAY_TAG, or RULEREPLAY_TIER to select a law, tag, or
configured tier in CI. Export RuleReplayReporter from this package as a Vitest
reporter when a dedicated RuleReplay summary is desired.
Requires Node.js 20.11 or newer and Vitest 3 or 4. Licensed under MIT.
