Skip to content

Commit c51def0

Browse files
committed
Add inferred full targets to fixture
1 parent b06f27f commit c51def0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/TestCase.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ type DecorationRanges = { [coloredSymbol: string]: SerializedRange };
5454

5555
export type TestCaseFixture = {
5656
command: Command;
57+
targets: Target[];
5758
languageId: string;
5859
decorations: DecorationRanges;
5960
initialState: Snapshot;
@@ -63,6 +64,7 @@ export type TestCaseFixture = {
6364
export default class TestCase {
6465
command: Command;
6566
languageId: string;
67+
targets: Target[];
6668
decorations: DecorationRanges;
6769
initialState: Snapshot | null = null;
6870
finalState: Snapshot | null = null;
@@ -77,6 +79,7 @@ export default class TestCase {
7779
this.command = command;
7880
this.languageId = activeEditor.document.languageId;
7981
this.decorations = this.extractTargetedDecorations(targets, navigationMap);
82+
this.targets = targets;
8083
}
8184

8285
extractPrimitiveTargetKeys(...targets: PrimitiveTarget[]) {
@@ -155,6 +158,7 @@ export default class TestCase {
155158
const fixture: TestCaseFixture = {
156159
command: this.command,
157160
languageId: this.languageId,
161+
targets: this.targets,
158162
decorations: this.decorations,
159163
initialState: this.initialState,
160164
finalState: this.finalState,

0 commit comments

Comments
 (0)