jest command not found
In this troubleshooting guide we learn how to fix jest command not found error message
Introduction
When you run more command in linux terminal / console, you get the following error message
jest: command not found
or when using sudo you get the following error message
sudo: jest: command not found
Solutions to jest: command not found
How To Fix jest: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu jest is provided by jest package.
jest is:
Some features of this testing framework are:
- Easy Setup: Jest is a complete and easy to set up JavaScript testing solution. In fact, Jest works out of the box for any React project.
- Instant Feedback: Failed tests run first. Fast interactive mode can switch between running all tests or only test files related to changed files.
- Snapshot Testing: Jest can capture snapshots of React trees or other serializable values to simplify UI testing.
Node.js is an event-based server-side JavaScript engine.
To fix this problem, we can install more using the command below.
sudo apt-get -y install jest
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install jest.
sudo apt -y install jest
Or if you have aptitude installed you can use the following command.
sudo aptitude install jest
Summary
In this tutorial we learn how to fix jest command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.