Skip to main content

Class: TestCase

testUtil/TestCase.TestCase

Constructors

constructor

new TestCase(command, context, spyIde, isHatTokenMapTest?, isDecorationsTest?, startTimestamp, captureFinalThatMark, extraSnapshotFields?)

Parameters

NameTypeDefault value
commandnever & never & never & never & CommandV4 & { version: 4 }undefined
contextTestCaseContextundefined
spyIdeSpyIDEundefined
isHatTokenMapTestbooleanfalse
isDecorationsTestbooleanfalse
startTimestampbigintundefined
captureFinalThatMarkbooleanundefined
extraSnapshotFields?keyof TestCaseSnapshot[]undefined

Defined in

testUtil/TestCase.ts:52

Properties

_awaitingFinalMarkInfo

Private _awaitingFinalMarkInfo: boolean

Defined in

testUtil/TestCase.ts:47


command

command: never & never & never & never & CommandV4 & { version: 4 }

Defined in

testUtil/TestCase.ts:49


finalState

Private Optional finalState: TestCaseSnapshot

Defined in

testUtil/TestCase.ts:43


fullTargets

Private fullTargets: TargetDescriptor[]

Defined in

testUtil/TestCase.ts:41


initialState

Private initialState: null | TestCaseSnapshot = null

Defined in

testUtil/TestCase.ts:42


languageId

Private languageId: string

Defined in

testUtil/TestCase.ts:40


marksToCheck

Private Optional marksToCheck: string[]

Defined in

testUtil/TestCase.ts:48


returnValue

Private Optional returnValue: unknown

Defined in

testUtil/TestCase.ts:45


spyIdeValues

Private Optional spyIdeValues: PlainSpyIDERecordedValues

Defined in

testUtil/TestCase.ts:50


targetKeys

Private targetKeys: string[]

Defined in

testUtil/TestCase.ts:46


thrownError

Optional thrownError: ThrownError

Defined in

testUtil/TestCase.ts:44

Accessors

awaitingFinalMarkInfo

get awaitingFinalMarkInfo(): boolean

Returns

boolean

Defined in

testUtil/TestCase.ts:217

Methods

filterMarks

filterMarks(command, context): void

Parameters

NameType
commandnever & never & never & never & CommandV4 & { version: 4 }
contextTestCaseContext

Returns

void

Defined in

testUtil/TestCase.ts:198


getExcludedFields

Private getExcludedFields(isInitialSnapshot): ("visibleRanges" | "clipboard" | "thatMark" | "sourceMark")[]

Parameters

NameType
isInitialSnapshotboolean

Returns

("visibleRanges" | "clipboard" | "thatMark" | "sourceMark")[]

Defined in

testUtil/TestCase.ts:106


getMarks

Private getMarks(): SerializedMarks

Returns

SerializedMarks

Defined in

testUtil/TestCase.ts:74


includesThatMark

Private includesThatMark(target, type): boolean

Parameters

NameType
targetTargetDescriptor
typestring

Returns

boolean

Defined in

testUtil/TestCase.ts:91


recordFinalState

recordFinalState(returnValue): Promise<void>

Parameters

NameType
returnValueunknown

Returns

Promise<void>

Defined in

testUtil/TestCase.ts:176


recordInitialState

recordInitialState(): Promise<void>

Returns

Promise<void>

Defined in

testUtil/TestCase.ts:162


recordSpyIdeValues

Private recordSpyIdeValues(): void

Returns

void

Defined in

testUtil/TestCase.ts:192


toYaml

toYaml(): string

Returns

string

Defined in

testUtil/TestCase.ts:141