Skip to content
This repository was archived by the owner on Jul 30, 2020. It is now read-only.

Fix/debug options #77

Merged
merged 8 commits into from
Nov 5, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@ export type RenderResult<Q extends Queries = typeof queries> = {
export interface RenderOptions<Q extends Queries = typeof queries> {
queries?: Q;
wrapper?: ComponentType;
options?: {
debug?: DebugOptions;
};
}

export interface DebugOptions {
omitProps: string[];
}

type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
Expand Down
5 changes: 2 additions & 3 deletions typings/pretty-print.d.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import { NativeTestInstance } from './query-helpers';
import { DebugOptions } from '.';

export function prettyPrint(
element: NativeTestInstance | string,
maxLength?: number,
options?: {
debug: {
omitProps: string[];
};
debug: DebugOptions;
},
): string | false;