diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c1bd2fafc7e618c52dc4195a3e1d5fbb7cbc0626..5ee52b561672e9ff0b7dfee7097abdf26fb96389 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -12,9 +12,11 @@ build-job:       # This job runs in the build stage, which runs first.
 unit-test-job:   # This job runs in the test stage.
   stage: test    # It only starts when the job in the build stage completes successfully.
   script:
+    - npm i
     - npm run test:unit
 
 e2e-test-job:    # This job runs in the test stage.
   stage: test    # It only starts when the job in the build stage completes successfully.
   script:
+    - npm i
     - npm run test:e2e