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.
- 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-appare fixed and are passing
Pipeline with failing unit tests:

There should be no pipeline for PRs to branches different then main

Those hints will help you start
- actions/setup-node@v4
npm cinpm test- Setting working directory - default working directory is the root of the repository
- Use
pull_requestevent trigger - other events - Example of Node.js workflow
- setting setting for all jobs
Here is an example solution for this task: