Skip to content

Testing

Cecilia Yin edited this page Mar 25, 2021 · 4 revisions

Unit Test cases should be nested within the package of their respective files

e.g.
--sockets 
    |
    |--joinRoom.js 
    |--__tests__
        |
        |--joinRoom.test.js

The naming schema should be "{fileanme}.test.js" Jest will automatically scan the repository for all tests according to the above format

Running Tests

Frontend

  1. Change directory into frontend.
  2. run npm test

Backend

  1. Change directory into backend.
  2. run npm test

Clone this wiki locally