UNPKG

cli-testing-library

Version:

Simple and complete CLI testing utilities that encourage good testing practices.

17 lines (16 loc) 554 B
import { TestInstance } from './types.cjs'; export interface QueryOptions { [key: string]: RegExp | boolean; } export type QueryArgs = [string, QueryOptions?]; export interface Suggestion { queryName: string; queryMethod: string; queryArgs: QueryArgs; variant: string; warning?: string; toString: () => string; } export type Variant = "find" | "get" | "query"; export type Method = "Text" | "text"; export declare function getSuggestedQuery(instance: TestInstance, variant?: Variant, method?: Method): Suggestion | undefined;