Skip to main content

Module: testUtil/TestCaseFixture

Interfaces

Type aliases

TestCaseCommand

Ƭ TestCaseCommand: CommandLatest

Defined in

testUtil/TestCaseFixture.ts:7


TestCaseFixture

Ƭ TestCaseFixture: Object

Type declaration

NameTypeDescription
commandTestCaseCommand-
decorations?PlainTestDecoration[]Expected decorations in the test case, for example highlighting deletions in red.
finalState?TestCaseSnapshotThe final state after a command is issued. Undefined if we are testing a non-match(error) case.
fullTargetsTargetDescriptor[]Inferred full targets added for context; not currently used in testing
ide?SpyIDERecordedValues-
initialStateTestCaseSnapshot-
languageIdstring-
marksToCheck?string[]A list of marks to check in the case of navigation map test otherwise undefined
postCommandSleepTimeMs?number-
postEditorOpenSleepTimeMs?number-
returnValue?unknownThe return value of the command. Will be undefined when we have recorded an error test case.
thrownError?ThrownErrorUsed to assert if an error has been thrown.

Defined in

testUtil/TestCaseFixture.ts:19


ThrownError

Ƭ ThrownError: Object

Type declaration

NameType
namestring

Defined in

testUtil/TestCaseFixture.ts:15