AnsweredAssumed Answered

How to do Unit/TDD/BDD testing in WAB

Question asked by tmistry on Jan 17, 2018

I am looking for documentation for creating unit test/tdd/bdd with webappbuilder. We have exported the app created using webappbuilder with our custom widgets and hosted it as a website on IIS.


I have got some success with Mocha/expect but i can only test my code which i have refactor up to certain point after that I need to mock object that require me to initialize classes found in WAB Dev edition to test widgets. 


I would love to get a sample code or documentation explaining how it's done or how ESRI does it. I have found that other folks have similar question. So this will help a lot of folks.