How to do Unit/TDD/BDD testing in WAB

406
0
01-17-2018 05:31 AM
TrusharMistry2
New Contributor

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. 


Thanks,
Trushar

0 Replies