Supplying helpers for test data


show more Supplying helpers for test data provides you with in-depth training on Developer. Taught by Joseph LeBlanc as part of the Node.js Essential Training (2013) show less
please wait ...

Supplying helpers for test data

Before writing unit tests, the application you're testing must be configured in such a way that you can test all of the end points. It's also helpful to supply some sample data you know won't change. In this video, we'll configure our application and add some sample data. Let's go to the Exercise files > Chapter 6 > Video 3 and then copy the Start folder to the desktop. Next, > Terminal, and change directory to that folder. And now I'm going to type npm install.

So the first thing I'm going to do, is create a Test folder in my Start folder. This folder is going to contain all of my unit tests as well as all the helper files I'll build to help run them. In the Exercise files, I have some sample data. This is just a set a three flights that I know won't change. Copy this Data folder into the Test folder. Now let's add a Helpers folder. This folder is going to contain an app.js file, which I'm going to use to simulate the application that we already ha...

Supplying helpers for test data
Video duration: 2m 35s 3h 17m Intermediate

Viewers:

Supplying helpers for test data provides you with in-depth training on Developer. Taught by Joseph LeBlanc as part of the Node.js Essential Training (2013)

Subject:
Developer
Software:
JavaScript Node.js
Author:
please wait ...