import * as fse from 'fs-extra' ; import * as path from 'path' ; import * as vscode from 'vscode' ; export const testWorkspaceRoot = path . resolve ( __dirname , '..' , '..' , 'testWorkspace' ) ; suiteSetup ( async ( ) => { const id = 'ms-azuretools.azureappservice' ; const extension = vscode . extensions . getExtension ( id ) ; if ( ! extension ) { throw new Error ( `Failed to activate extension with id "${ id }".` ) ; } else { await extension . activate ( ) ; } const folders = vscode . workspace . workspaceFolders || [ ] ; for ( const folder of folders ) { await fse . ensureDir ( folder . uri . fsPath ) ; } } ) ;