title: How to write a unit tests for Bot Framework nodejs v4 dialogs
body: <p>I looking for an example to write unit test cases for bot builder dialogs for V4 Sdk. I came across a blog but that is for v3 (<a href="https://www.microsoft.com/developerblog/2017/01/20/unit-testing-for-bot-applications/" rel="nofollow noreferrer">https://www.microsoft.com/developerblog/2017/01/20/unit-testing-for-bot-applications/</a>)
  Are there any examples or patterns to follow if I need dialogs to be unit tested for conversation flow? I have looked at the option of using new emulator and transcript files but, that is more for about functional flow and designers to look at mock ups where dialogs are not really tested. </p>
  
  <p>I came across <a href="https://docs.microsoft.com/en-us/javascript/api/botbuilder-core/testadapter?view=botbuilder-ts-latest" rel="nofollow noreferrer">Test Adapter</a> but trying to find how can I run the example form the page with my local bot instance. </p>