jamesgeer / conf-twitter-bot

A Twitter Bot to post about academic papers
MIT License
4 stars 0 forks source link

Custom docker file backend test db #71

Closed jamesgeer closed 2 years ago

jamesgeer commented 2 years ago

The backend package.json 'tests' script now spins up a single docker container with the test database, runs jest's tests and then removes this container.

Meaning tests are performed on a clean database each time and you don't have to worry about excess memory usage from running five containers at once since the test database will just close once done.