Our application

For our application, we're going to set up unit testing for our Y2K map app using Intern. Unlike our other applications, which only required a browser, we're going to use Node.js for this setup. If we were following real TDD/BDD practices, we would have written these tests while we were developing the application. However, this will give you practice writing tests for any legacy applications you've previously written.

For this sample, we'll follow the example provided by David Spriggs and Tom Wayson through GitHub (https://github.com/DavidSpriggs/intern-tutorial-esri-jsapi). We'll make some modifications to work with more recent updates in both the ArcGIS JavaScript API and in the modules associated with the tests.

Adding testing ...

Get Mastering ArcGIS Server Development with JavaScript now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.