angular/vscode-ng-language-service/integration/e2e/hover_spec.ts
Alan Agius 8146fc2817 test: fix vscode language service e2e tests (#64197)
Fix the e2e test suite for the vscode language service extension and run it in CI.

PR Close #64197
2025-10-02 13:03:24 -07:00

19 lines
553 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);
}, 20_000);
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);
});
});