Agreed, just break out business logic into small limited responsibility functions and unit test those functions. If those functions pass testing then the rest of the app should run; aside from connection issues to databases, services, 3rd party APIs etc. Also you have to write the code first to be…