Sorry this took a while because I was having a lot of trouble getting the database to work with the testing. Turns out it's because I needed to ensure a connection was created before tests start. I plan to also start working on tests for the search, but I thought I would put this up here anyway and maybe merge it in.
🔨 Changes
Added Mocha and Chai to the job_server for testing
Added some integration tests for the mailing list controller
:squirrel: Testing instructions
npm install
npm run build
npm test
:clipboard: Checklist
[ ] My code follows the style guidelines of this project
[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
Sorry this took a while because I was having a lot of trouble getting the database to work with the testing. Turns out it's because I needed to ensure a connection was created before tests start. I plan to also start working on tests for the search, but I thought I would put this up here anyway and maybe merge it in.
🔨 Changes
:squirrel: Testing instructions
npm install
npm run build
npm test
:clipboard: Checklist