saladenicoise / SOEN-487-Galactus

Final Project for SOEN 487
4 stars 1 forks source link

Add dummy testing function to notify service #46

Closed allfatherWednesday closed 1 year ago

allfatherWednesday commented 1 year ago

Testing out the testing framework jest. Created a dummy js function to test. That function always return true. To run the test, navigate to the folder with a CLI and run 'npm install --save-dev jest' the first time you do it. Then run 'npm test'. This runs jest, which looks for the following files in the current folder or its subfolders: Files with .js suffix in tests folders. Files with .test.js suffix. Files with .spec.js suffix. And runs them and shows you the result.

saladenicoise commented 1 year ago

Also, will say you just need to do npm install on the CLI in the directory, it will automatically download all dependencies