import * as shell from 'shelljs' ; describe ( 'commitlintPluginJiraTests' , ( ) => { const testCommitMessages = { singleScope : 'IB-2121: test commit message' , } ; it ( 'should load with success provided commitlint config' , ( ) => { let cliOutput = { stderr : '' , code : 0 , } ; try { cliOutput = shell . exec ( `echo "${ testCommitMessages . singleScope }" | npx commitlint` ) ; } catch ( error ) { cliOutput = { stderr : error , code : 1 , } ; } expect ( cliOutput . code ) . toEqual ( 0 ) ; } ) ; } ) ;