Start the Server and Configure the Database

The TO-DO application server side was written using Express. There are three versions of the client: one that manipulates the DOM directly, one that uses jQuery instead, and a third that uses AngularJS. Each part of the application was tested separately, and now we’re poised to do the end-to-end testing.

We must cross two hurdles before writing any integration tests for the app.

First, for the integration test to succeed we need the application’s server running. To run the tests we wrote in previous chapters, we did not have to start the server to execute the server-side automated tests. However, to get a glimpse of the server in action, for a few moments we ran the server manually using npm start ...

Get Test-Driving JavaScript Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.