December 2015
Intermediate to advanced
240 pages
4h 57m
English
In the previous example, we saw a way to start and run our test in Mocha. Server-side testing is important, because it helps you to know your code quality, speed, services request, and response time.
For a server-side support, we need to implement an HTTP server, which will serve our requests. Follow the points here to add a web server in our application:
app with an index.html file inside. Leave the index.html file blank as of now.test directory named testMyapp.js.app.js to add our application code. The serverside-testing application directory structure will now look like this:Read now
Unlock full access