@japa/snapshot
Version:
Snapshot testing plugin for Japa
13 lines (12 loc) • 584 B
TypeScript
import type { CLIArgs } from '@japa/runner/types';
import type { TestContext } from '@japa/runner/core';
import type { SnapshotPluginOptions } from './types.js';
import { SnapshotManager } from './snapshot_manager.js';
export declare class PluginContext {
#private;
static currentTestContext: TestContext | null;
static snapshotManager: SnapshotManager;
static init(options: SnapshotPluginOptions | undefined, cliArgs: CLIArgs): void;
static setCurrentTestContext(testContext: TestContext): void;
static shouldUpdateSnapshots(): string | boolean | string[];
}