mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Update e2e test runner to VS Code 1.102.0, streamline test activation, and manage temporary directories via `TEST_TMPDIR`.
19 lines
545 B
TypeScript
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);
|
|
});
|
|
});
|