i am trying to exec command from my node function, but i am not able to get promiss from the function, can anyone please check my code and help me to resolve this issue ? 

```
    function exec_api() {
        return new Promise( function(resolve){
            const execSync = require('child_process').exec;
            execSync('DB_HOST='+process.env.NODEJS_UNITTEST_DB_HOST+' DB_DATABASE='+process.env.NODEJS_UNITTEST_DB_DATABASE+'  DB_USERNAME='+process.env.NODEJS_UNITTEST_DB_USERNAME+' DB_PASSWORD='+process.env.NODEJS_UNITTEST_DB_PASSWORD+'  PORT='+process.env.NODEJS_UNITTEST_SERVICE_PORT+' sudo nodemon server.js', (err, stdout, stderr) => {
                console.log("sdsdsd23");
                //console.log(`stdout:`+stdout);
                //console.log(`stderr:`+stderr);
                if (err) {
                    resolve(false);
                } else {                
                    resolve(true);
                }
            }); 
        });    
    }

it('Exec API', function() {
    this.timeout(3500);
    return exec_api().should.eventually.be.true;
});

```