import * as path from 'path' ; import { runTests } from 'vscode-test' ; ( async ( ) => { const extensionDevelopmentPath = path . resolve ( __dirname , '../../' ) ; const extensionTestsPath = path . resolve ( __dirname , './suite' ) ; await runTests ( { extensionDevelopmentPath , extensionTestsPath , launchArgs : [ '--disable-extensions' , path . join ( extensionDevelopmentPath , 'fixtures' ) , ] , } ) . catch ( ( ) => { console . error ( `Test run failed` ) ; process . exit ( 1 ) ; } ) ; } ) ( ) ;