Testing an Express app with SuperTest and moxios
npm run server
(It runs app with dev mode watching the server)
npm run server:prod
(It runs app with dev but doesnt watch the server)
Make sure you have installed yarn
:
Later run: yarn test
(runs tests with Jest)