@featurevisor/core
Version:
Core package of Featurevisor for Node.js usage
24 lines (23 loc) • 935 B
TypeScript
import type { Test, DatafileContent } from "@featurevisor/types";
import { Dependencies } from "../dependencies";
import { Plugin } from "../cli";
export interface TestProjectOptions {
keyPattern?: string;
assertionPattern?: string;
verbose?: boolean;
showDatafile?: boolean;
onlyFailures?: boolean;
schemaVersion?: string;
inflate?: number;
}
export interface ExecutionResult {
passed: boolean;
assertionsCount: {
passed: number;
failed: number;
};
}
export type DatafileContentByEnvironment = Map<string | false, DatafileContent>;
export declare function executeTest(test: Test, deps: Dependencies, options: TestProjectOptions, datafileContentByEnvironment: DatafileContentByEnvironment): Promise<ExecutionResult | undefined>;
export declare function testProject(deps: Dependencies, testOptions?: TestProjectOptions): Promise<boolean>;
export declare const testPlugin: Plugin;