How to kill nodemon process after running mocha tests?

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

How to kill nodemon process after running mocha tests?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

Member

by gilbert , 8 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.

Related Threads:

How to execute many process tests in mocha?
How to write mocha tests dependent on other mocha tests?
How to ignore nested node modules when running mocha?
What is `this` in sinon.test() in mocha tests?
How to automate mocha tests with jenkins?
How to run mocha tests with reporter?