@@ -12,7 +12,7 @@ const pkg = require('../../package.json');
1212describe ( 'Dev Containers CLI' , function ( ) {
1313 this . timeout ( '120s' ) ;
1414
15- const tmp = path . relative ( process . cwd ( ) , path . join ( __dirname , 'tmp' ) ) ;
15+ const tmp = path . join ( __dirname , 'tmp' ) ;
1616 const cli = `npx --prefix ${ tmp } devcontainer` ;
1717
1818 before ( 'Install' , async ( ) => {
@@ -27,7 +27,7 @@ describe('Dev Containers CLI', function () {
2727 } ) ;
2828
2929 describe ( 'Command run-user-commands' , ( ) => {
30- describe ( 'with valid config' , ( ) => {
30+ describe . only ( 'with valid config' , ( ) => {
3131 let containerId : string | null = null ;
3232 const testFolder = `${ __dirname } /configs/image` ;
3333 beforeEach ( async ( ) => containerId = ( await devContainerUp ( cli , testFolder ) ) . containerId ) ;
@@ -37,6 +37,11 @@ describe('Dev Containers CLI', function () {
3737 const response = JSON . parse ( res . stdout ) ;
3838 assert . equal ( response . outcome , 'success' ) ;
3939 } ) ;
40+ it ( 'should execute successfully' , async ( ) => {
41+ const res = await shellExec ( `${ cli } run-user-commands` , { cwd : testFolder } ) ;
42+ const response = JSON . parse ( res . stdout ) ;
43+ assert . equal ( response . outcome , 'success' ) ;
44+ } ) ;
4045 } ) ;
4146
4247 it ( 'should fail with "not found" error when config is not found' , async ( ) => {
0 commit comments