File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 11'use strict' ;
2+ export const extensionId = "intersystems.servermanager" ;
23
34import * as vscode from 'vscode' ;
45
Original file line number Diff line number Diff line change @@ -3,12 +3,18 @@ import { before } from "mocha";
33
44// You can import and use all API from the 'vscode' module
55// as well as import your extension to test it
6- import * as vscode from "vscode" ;
7- // import * as myExtension from ' ../extension' ;
6+ import { window , extensions } from "vscode" ;
7+ import { extensionId } from " ../../ extension" ;
88
99suite ( "Extension Test Suite" , ( ) => {
10+ suiteSetup ( async function ( ) {
11+ // make sure git is activated
12+ const ext = extensions . getExtension ( extensionId ) ;
13+ await ext ?. activate ( ) ;
14+ } ) ;
15+
1016 before ( ( ) => {
11- vscode . window . showInformationMessage ( "Start all tests." ) ;
17+ window . showInformationMessage ( "Start all tests." ) ;
1218 } ) ;
1319
1420 test ( "Sample test" , ( ) => {
You can’t perform that action at this time.
0 commit comments