import * as assert from 'assert' ; import * as vscode from 'vscode' ; suite ( 'Extension Test Suite' , ( ) => { vscode . window . showInformationMessage ( 'Start all tests.' ) ; test ( 'should activate' , async ( ) => { const registeredCommands = await vscode . commands . getCommands ( ) ; assert . equal ( registeredCommands . filter ( c => c === 'SonarLintDogfood.CheckNow' ) . length , 1 ) ; } ) ; } ) ;