diff --git a/packages/cursorless-vscode-e2e/src/suite/scopeProvider/runBasicScopeInfoTest.ts b/packages/cursorless-vscode-e2e/src/suite/scopeProvider/runBasicScopeInfoTest.ts index 1bd4beb106..f3de48e5f4 100644 --- a/packages/cursorless-vscode-e2e/src/suite/scopeProvider/runBasicScopeInfoTest.ts +++ b/packages/cursorless-vscode-e2e/src/suite/scopeProvider/runBasicScopeInfoTest.ts @@ -54,11 +54,14 @@ function helloWorld() { } `; -function getExpectedScope(scopeSupport: ScopeSupport): ScopeSupportInfo { +function getExpectedScope( + scopeSupport: ScopeSupport, + iterationScopeSupport?: ScopeSupport, +): ScopeSupportInfo { return { humanReadableName: "named function", isLanguageSpecific: true, - iterationScopeSupport: scopeSupport, + iterationScopeSupport: iterationScopeSupport ?? scopeSupport, scopeType: { type: "namedFunction", }, @@ -71,5 +74,8 @@ function getExpectedScope(scopeSupport: ScopeSupport): ScopeSupportInfo { } const unsupported = getExpectedScope(ScopeSupport.unsupported); -const supported = getExpectedScope(ScopeSupport.supportedButNotPresentInEditor); +const supported = getExpectedScope( + ScopeSupport.supportedButNotPresentInEditor, + ScopeSupport.supportedAndPresentInEditor, +); const present = getExpectedScope(ScopeSupport.supportedAndPresentInEditor);