import type { AnyPack, AnyPackParameters, FullPackConfigByPack, GetPackParameters } from '../config'; import type { FullMocksConfig } from '../fullMocks'; import type { MapBackendResponseToLog, MapLogPayload, MapLogPayloadInReport } from '../log'; import type { MatchScreenshotConfig } from '../matchScreenshot'; import type { LiteReport } from '../report'; import type { TestFunction } from '../testRun'; import type { UserlandHooks } from './userlandHooks'; /** * Creates pack-specific types of some functions (of hooks and functions in pack config) * and objects (lite report). */ export type CreatePackSpecificTypes, Hooks extends UserlandHooks = UserlandHooks> = Readonly<{ DoAfterPack: FullPackConfigByPack['doAfterPack'][number]; DoBeforePack: FullPackConfigByPack['doBeforePack'][number]; FilterTestsIntoPack: Pack['filterTestsIntoPack']; FullMocks: FullMocksConfig; GetFullPackConfig: () => FullPackConfigByPack; GetLogContext: Hooks['getLogContext']; GetMainTestRunParams: Hooks['getMainTestRunParams']; GetTestRunHash: Hooks['getTestRunHash']; IsTestSkipped: Hooks['isTestSkipped']; LiteReport: LiteReport; MapBackendResponseErrorToLog: MapBackendResponseToLog; MapBackendResponseToLog: MapBackendResponseToLog; MapLogPayloadInConsole: MapLogPayload; MapLogPayloadInLogFile: MapLogPayload; MapLogPayloadInReport: MapLogPayloadInReport; MatchScreenshot: MatchScreenshotConfig; TestFunction: TestFunction; WaitBeforeRetry: FullPackConfigByPack['waitBeforeRetry']; }>;