How to kill nodemon process after running mocha tests?

by arnoldo.moen , in category: Javascript , 4 months ago

How to kill nodemon process after running mocha tests?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

Member

by gilbert , 4 months ago

@arnoldo.moen 

You can kill the nodemon process after running mocha tests by using the following steps:

  1. Find the process ID (PID) of the nodemon process by running the following command in your terminal:
1
ps aux | grep nodemon


  1. Look for the process with nodemon in the command line and note down the PID associated with it.
  2. Kill the nodemon process using the following command, replacing
1
kill <PID>


After running this command, the nodemon process should be successfully killed.