angular/vscode-ng-language-service/integration/e2e/hover_spec.ts
Alan Agius 1a094ddb2b ci: try to resolve vscode extension e2e flakes
Update e2e test runner to VS Code 1.102.0, streamline test activation, and manage temporary directories via `TEST_TMPDIR`.
2025-11-20 17:03:15 -05:00

19 lines
545 B
TypeScript

import * as vscode from 'vscode';
import {activate, FOO_TEMPLATE_URI, HOVER_COMMAND} from './helper';
describe('Angular LS quick info', () => {
beforeAll(async () => {
await activate(FOO_TEMPLATE_URI);
});
it(`returns quick info from built in extension for class in template`, async () => {
const position = new vscode.Position(1, 8);
const quickInfo = await vscode.commands.executeCommand<vscode.Hover[]>(
HOVER_COMMAND,
FOO_TEMPLATE_URI,
position,
);
expect(quickInfo?.length).toBe(1);
});
});