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
Properties
_awaitingFinalMarkInfo
• Private
_awaitingFinalMarkInfo: boolean
Defined in
command
• command: never
& never
& never
& never
& CommandV4
& { version
: 4
}
Defined in
finalState
• Private
Optional
finalState: TestCaseSnapshot
Defined in
fullTargets
• Private
fullTargets: TargetDescriptor
[]
Defined in
initialState
• Private
initialState: null
| TestCaseSnapshot
= null
Defined in
languageId
• Private
languageId: string
Defined in
marksToCheck
• Private
Optional
marksToCheck: string
[]
Defined in
returnValue
• Private
Optional
returnValue: unknown
Defined in
spyIdeValues
• Private
Optional
spyIdeValues: PlainSpyIDERecordedValues
Defined in
targetKeys
• Private
targetKeys: string
[]
Defined in
thrownError
• Optional
thrownError: ThrownError
Defined in
Accessors
awaitingFinalMarkInfo
• get
awaitingFinalMarkInfo(): boolean
Returns
boolean
Defined in
Methods
filterMarks
▸ filterMarks(command
, context
): void
Parameters
Name | Type |
---|---|
command | never & never & never & never & CommandV4 & { version : 4 } |
context | TestCaseContext |
Returns
void
Defined in
getExcludedFields
▸ Private
getExcludedFields(isInitialSnapshot
): ("visibleRanges"
| "clipboard"
| "thatMark"
| "sourceMark"
)[]
Parameters
Name | Type |
---|---|
isInitialSnapshot | boolean |
Returns
("visibleRanges"
| "clipboard"
| "thatMark"
| "sourceMark"
)[]
Defined in
getMarks
▸ Private
getMarks(): SerializedMarks
Returns
Defined in
includesThatMark
▸ Private
includesThatMark(target
, type
): boolean
Parameters
Name | Type |
---|---|
target | TargetDescriptor |
type | string |
Returns
boolean
Defined in
recordFinalState
▸ recordFinalState(returnValue
): Promise
<void
>
Parameters
Name | Type |
---|---|
returnValue | unknown |
Returns
Promise
<void
>
Defined in
recordInitialState
▸ recordInitialState(): Promise
<void
>
Returns
Promise
<void
>
Defined in
recordSpyIdeValues
▸ Private
recordSpyIdeValues(): void
Returns
void
Defined in
toYaml
▸ toYaml(): string
Returns
string