import ma = require ( 'azure-pipelines-task-lib/mock-answer' ) ; import tmrm = require ( 'azure-pipelines-task-lib/mock-run' ) ; import path = require ( 'path' ) ; let tp = path . join ( __dirname , './AWSValidateSuccessNoAdditionalArgsL0.js' ) ; let tr = new tmrm . TaskMockRunner ( tp ) ; tr . setInput ( 'provider' , 'aws' ) ; tr . setInput ( 'command' , 'validate' ) ; let a = < ma . TaskLibAnswers > { "which" : { "terraform" : "terraform" } , "checkPath" : { "terraform" : true } , "exec" : { "terraform validate" : { "code" : 0 , "stdout" : "Executed Successfully" } } } ; tr . setAnswers ( a ) ; tr . run ( ) ;