pnxtech / hydra-express

A module which wraps Hydra and ExpressJS into a library for building distributed applications - such as microservices
MIT License
184 stars 37 forks source link

Enable "testMode" flag #116

Closed taurenk closed 6 years ago

taurenk commented 6 years ago

The purpose of this PR is to enable unit + functional tests without the use of a Redis server running. The changes piggyback off of hydra core's test modeFlag + Mock-Redis use.

Changes:

Please note: I have commented out the first test as it seems problematic and probably needs to be revisited in more depth. The 2nd "core test" of being able to register a router and access it now works properly!