jest-prettyhtml-matchers
Version:
Custom Jest snapshot matchers that use prettyhtml to format strings.
17 lines (16 loc) • 410 B
TypeScript
export interface PrettyHtmlOptions {
tabWidth?: number;
useTabs?: boolean;
printWidth?: number;
usePrettier?: boolean;
singleQuote?: boolean;
wrapAttributes?: boolean;
sortAttributes?: boolean;
prettier?: {
tabWidth?: number;
useTabs?: boolean;
printWidth?: number;
singleQuote?: boolean;
};
}
export type Format = (input: string) => string;