import {ForkName} from "@lodestar/params"; import {ISpecTestOptions} from "@lodestar/spec-test-util"; export enum RunnerType { custom, default, } export type TestRunnerFn = ( fork: ForkName, testHandler: string, testSuite: string ) => { testFunction: (testCase: TestCase, directoryName: string) => Result | Promise; options: Partial>; }; export type TestRunnerCustom = ( fork: ForkName, testHandler: string, testSuite: string, testSuiteDirpath: string ) => void; export type TestRunner = | {type: RunnerType.default; fn: TestRunnerFn} | {type: RunnerType.custom; fn: TestRunnerCustom}; /* eslint-disable @typescript-eslint/naming-convention */ export type BaseSpecTest = { meta?: { bls_setting?: bigint; }; }; export function shouldVerify(testCase: BaseSpecTest): boolean { return testCase.meta?.bls_setting === BigInt(1); }