testeranto
Version:
the AI powered BDD test framework for typescript projects
37 lines (36 loc) • 1.07 kB
TypeScript
import { Ibdd_in, Ibdd_out, ITestSpecification, ITestImplementation, ITestAdapter } from "../../CoreTypes";
import { BaseSuite } from "../BaseSuite";
export type TestStore = {
name?: string;
index?: number;
testStore: boolean;
testSelection?: boolean;
error?: Error;
};
export type TestSelection = {
testSelection: boolean;
error?: boolean;
};
export type I = Ibdd_in<typeof BaseSuite, BaseSuite<any, any>, // isubject
TestStore, // istore
TestSelection, // iselection
() => Promise<TestStore>, // given
(store: TestStore) => Promise<TestStore>, // when
(store: TestStore) => Promise<TestSelection>>;
export type O = Ibdd_out<{
Default: [string];
}, {
Default: [];
}, {
TestWhen: [];
RunSuite: [];
}, {
TestThen: [];
FeaturesIncludes: [feature: string];
StoreValid: [];
SuiteNameMatches: [string];
SuiteIndexMatches: [number];
}>;
export declare const specification: ITestSpecification<I, O>;
export declare const implementation: ITestImplementation<I, O>;
export declare const testAdapter: ITestAdapter<I>;