Class: TestCase
testUtil/TestCase.TestCase
Constructors
constructor
• new TestCase(command
, context
, spyIde
, isHatTokenMapTest?
, isDecorationsTest?
, startTimestamp
, captureFinalThatMark
, extraSnapshotFields?
)
Parameters
Name | Type | Default value |
---|---|---|
command | never & never & never & never & CommandV4 & { version : 4 } | undefined |
context | TestCaseContext | undefined |
spyIde | SpyIDE | undefined |
isHatTokenMapTest | boolean | false |
isDecorationsTest | boolean | false |
startTimestamp | bigint | undefined |
captureFinalThatMark | boolean | undefined |
extraSnapshotFields? | keyof TestCaseSnapshot [] | undefined |
Defined in
testUtil/TestCase.ts:55
Properties
_awaitingFinalMarkInfo
• Private
_awaitingFinalMarkInfo: boolean
Defined in
testUtil/TestCase.ts:50
command
• command: never
& never
& never
& never
& CommandV4
& { version
: 4
}
Defined in
testUtil/TestCase.ts:52
decorations
• Private
Optional
decorations: PlainTestDecoration
[]
Defined in
testUtil/TestCase.ts:45
finalState
• Private
Optional
finalState: TestCaseSnapshot
Defined in
testUtil/TestCase.ts:46
fullTargets
• Private
fullTargets: TargetDescriptor
[]
Defined in
testUtil/TestCase.ts:43
initialState
• Private
initialState: null
| TestCaseSnapshot
= null
Defined in
testUtil/TestCase.ts:44
languageId
• Private
languageId: string
Defined in
testUtil/TestCase.ts:42
marksToCheck
• Private
Optional
marksToCheck: string
[]
Defined in
testUtil/TestCase.ts:51
returnValue
• Private
Optional
returnValue: unknown
Defined in
testUtil/TestCase.ts:48
spyIdeValues
• Private
Optional
spyIdeValues: SpyIDERecordedValues
Defined in
testUtil/TestCase.ts:53
targetKeys
• Private
targetKeys: string
[]
Defined in
testUtil/TestCase.ts:49
thrownError
• Optional
thrownError: ThrownError
Defined in
testUtil/TestCase.ts:47
Accessors
awaitingFinalMarkInfo
• get
awaitingFinalMarkInfo(): boolean
Returns
boolean
Defined in
testUtil/TestCase.ts:227
Methods
filterMarks
▸ filterMarks(command
, context
): void
Parameters
Name | Type |
---|---|
command | never & never & never & never & CommandV4 & { version : 4 } |
context | TestCaseContext |
Returns
void
Defined in
testUtil/TestCase.ts:208
getExcludedFields
▸ Private
getExcludedFields(isInitialSnapshot
): ("clipboard"
| "visibleRanges"
| "thatMark"
| "sourceMark"
)[]
Parameters
Name | Type |
---|---|
isInitialSnapshot | boolean |
Returns
("clipboard"
| "visibleRanges"
| "thatMark"
| "sourceMark"
)[]
Defined in
testUtil/TestCase.ts:116
getMarks
▸ Private
getMarks(): SerializedMarks
Returns
Defined in
testUtil/TestCase.ts:84
includesThatMark
▸ Private
includesThatMark(target
, type
): boolean
Parameters
Name | Type |
---|---|
target | TargetDescriptor |
type | string |
Returns
boolean
Defined in
testUtil/TestCase.ts:101
recordDecorations
▸ recordDecorations(): void
Returns
void
Defined in
testUtil/TestCase.ts:77
recordFinalState
▸ recordFinalState(returnValue
): Promise
<void
>
Parameters
Name | Type |
---|---|
returnValue | unknown |
Returns
Promise
<void
>
Defined in
testUtil/TestCase.ts:187
recordInitialState
▸ recordInitialState(): Promise
<void
>
Returns
Promise
<void
>
Defined in
testUtil/TestCase.ts:173
recordSpyIdeValues
▸ Private
recordSpyIdeValues(): void
Returns
void
Defined in
testUtil/TestCase.ts:204
toYaml
▸ toYaml(): string
Returns
string
Defined in
testUtil/TestCase.ts:151