Skip to main content

Module: libs/vscode-common/testUtil/takeSnapshot

Namespaces

Type aliases

ExcludableSnapshotField

Ƭ ExcludableSnapshotField: keyof TestCaseSnapshot

Defined in

libs/vscode-common/testUtil/takeSnapshot.ts:17


ExtraSnapshotField

Ƭ ExtraSnapshotField: keyof TestCaseSnapshot

Defined in

libs/vscode-common/testUtil/takeSnapshot.ts:16


TestCaseSnapshot

Ƭ TestCaseSnapshot: Object

Type declaration

NameTypeDescription
clipboard?string-
documentContentsstring-
marks?SerializedMarks-
metadata?unknownExtra information about the snapshot. Must be json serializable
selectionsSelectionPlainObject[]-
sourceMark?TargetPlainObject[]-
thatMark?TargetPlainObject[]-
timeOffsetSeconds?number-
visibleRanges?RangePlainObject[]-

Defined in

libs/vscode-common/testUtil/takeSnapshot.ts:19

Functions

takeSnapshot

takeSnapshot(thatMark, sourceMark, excludeFields?, extraFields?, editor, ide, marks?, extraContext?, metadata?, clipboard?): Promise<TestCaseSnapshot>

Parameters

NameTypeDefault value
thatMarkundefined | ThatMarkundefined
sourceMarkundefined | ThatMarkundefined
excludeFieldskeyof TestCaseSnapshot[][]
extraFieldskeyof TestCaseSnapshot[][]
editorTextEditorundefined
ideIDEundefined
marks?SerializedMarksundefined
extraContext?ExtraContextundefined
metadata?unknownundefined
clipboard?Clipboardundefined

Returns

Promise<TestCaseSnapshot>

Defined in

libs/vscode-common/testUtil/takeSnapshot.ts:41