ts-jest command not found

In this troubleshooting guide we learn how to fix ts-jest command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

ts-jest: command not found

or when using sudo you get the following error message

sudo: ts-jest: command not found

Solutions to ts-jest: command not found

How To Fix ts-jest: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu ts-jest is provided by ts-jest package.

ts-jest is:

Jest is a popular test framework for JavaScript projects. ts-jest extends jest to test projects written in Typescript.

It supports all features of TypeScript including type-checking.

To fix this problem, we can install more using the command below.

sudo apt-get -y install ts-jest

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install ts-jest.

sudo apt -y install ts-jest

Or if you have aptitude installed you can use the following command.

sudo aptitude install ts-jest

Summary

In this tutorial we learn how to fix ts-jest command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.