Why I can't run a command exactly the same as it is in my package.json file? Here is an example:
Package.json
"scripts": {
  ...
  "test": "jest",
  ...
},
If I run "npm run test" jest works fine and my unit tests are executed. But if I try to run jest without using the script in the package.json, I can't execute it.
When I run the command jest:
zsh: command not found: jest
I thought that when I'm at the directory of the project, I would be able to use the same scripts as the project, without having to add it to the scripts and calling it via npm or yarn.