forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaaFirstTest.test.ts
More file actions
23 lines (20 loc) · 963 Bytes
/
aaFirstTest.test.ts
File metadata and controls
23 lines (20 loc) · 963 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
import { expect } from 'chai';
import { extensions } from 'vscode';
import { PVSC_EXTENSION_ID } from '../../client/common/constants';
import { initialize } from '../initialize';
// NOTE:
// We need this to be run first, as this ensures the extension activates.
// Sometimes it can take more than 25 seconds to complete (as the extension looks for interpeters, and the like).
// So lets wait for a max of 1 minute for the extension to activate (note, subsequent load times are faster).
suite('Activate Extension', () => {
suiteSetup(async function () {
// tslint:disable-next-line:no-invalid-this
this.timeout(60000);
await initialize();
});
test('Python extension has activated', async () => {
expect(extensions.getExtension(PVSC_EXTENSION_ID)!.isActive).to.equal(true, 'Extension has not been activated');
});
});