using vscode or webstorm we cant see the video options in the auto complete pop up. going through index.d.ts you would see that the video options typing is not there too.
to be able to autocomplete video options based on the type definition file.

Ran into the same issue so for other readers, the temporary workaround of using module augmentation will work:
declare global {
interface VideoOptions {
singleFile?: boolean;
failedOnly?: boolean;
pathPattern?: string;
}
interface Runner {
video(path: string, options?: VideoOptions, encodingOptions?: unknown): this;
}
}
I didn't know what type to properly assign to encodingOptions as it supports "all of ffmpeg options" so I left it as unknown.
Edit: modified the sample above so VSCode IntelliSense sees video as a method rather than a property. They achieve the same in typings, but this is more consistent.
Closed by #4636.
This thread has been automatically locked since it is closed and there has not been any recent activity. Please open a new issue for related bugs or feature requests. We recommend you ask TestCafe API, usage and configuration inquiries on StackOverflow.
Most helpful comment
Ran into the same issue so for other readers, the temporary workaround of using module augmentation will work:
I didn't know what type to properly assign to encodingOptions as it supports "all of ffmpeg options" so I left it as
unknown.Edit: modified the sample above so VSCode IntelliSense sees
videoas a method rather than a property. They achieve the same in typings, but this is more consistent.