Have set up Jest for unit testing in javascript. Make sure test files are named name.test.js where name is the name of the javascript file you are trying to test.
Make sure you have "test": "jest" in your scripts section in the package.json file for jest to run.
Have set up Jest for unit testing in javascript. Make sure test files are named name.test.js where name is the name of the javascript file you are trying to test.
Make sure you have "test": "jest" in your scripts section in the package.json file for jest to run.
To run unit tests:
npm test