Interface SameOptions

Options for all comparator operations

interface SameOptions {
    bufferChunkSize?: number;
    diffContext?: number;
    expect: any;
    expectKey?: any;
    includeEnumerable?: boolean;
    includeGetters?: boolean;
    indent?: string;
    isKey?: boolean;
    key?: any;
    level?: number;
    parent?: Same;
    provisional?: boolean;
    reactString?: boolean;
    seen?: ((obj?: any) => false | Format);
    sort?: boolean;
    style?: StyleType;
}

Hierarchy (view full)

Properties

bufferChunkSize?: number
diffContext?: number

how many lines of context to print around changes in diffs

10
expect: any

the pattern to test against

expectKey?: any
includeEnumerable?: boolean

Include any and all enumerable properties, including those inherited on the prototype chain. By default, only own properties are printed.

includeGetters?: boolean

Include getter properties

indent?: string

indentation level of this object within the object graph

isKey?: boolean

used when formatting Map keys

key?: any

Set when printing child fields

level?: number

level within the object graph being printed

parent?: Same

set when formatting keys and values of collections

provisional?: boolean

used when provisionally exploring a path for comparison

reactString?: boolean

Represent and compare react elements as JSX strings.

Only supported in the 'pretty' formatting style.

seen?: ((obj?: any) => false | Format)

test whether an object has been seen, and get a reference to the Format handling them, if so.

overridden in child classes when doing simplePrint()

sort?: boolean

sort items alphabetically by key

style?: StyleType

how to print this thing