Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 1.84 KB

README.md

File metadata and controls

37 lines (27 loc) · 1.84 KB

Task 2

Now your task is to run all the unit tests when the PR is created. The unit tests are located in the desktop-app folder. To run them you need to install the dependencies (npm install) and then run the tests (npm test). In the CI environment it is recommend to install dependencies by using npm ci.

Since the tests were not run regularly they may be broken. Fix them to be able to merge your branch.

Definition of Done

  • Unit tests are run when new commit is pushed to the branch with PR
  • When unit tests are not passing, the job should fail
  • Unit tests are run on latest LTS version of node
  • Node dependencies are cached
  • Tests for the desktop-app are fixed and are passing

Pipeline with failing unit tests: Job 2 result

There should be no pipeline for PRs to branches different then main Job 2 PR to branch different then main

Hints & help

Those hints will help you start

Here is an example solution for this task: