The video for this lesson is currently being updated, please read the transcript instead.

Server unit tests

In this video, we'll set up a job to run the server unit tests. This is a little more complicated than the client unit tests, as these tests require MongoDB and other software beyond Node and NPM.

unit-test-server

Let's start by creating a new job that we'll call unit-test-server. This job is also part of the test stage, so let's give it a property stage and assign that test.

.gitlab-ci.yml

...
unit-test-server:
  stage: test

To view the complete lesson you'll need to login or join this course.


Click to load comments...