thibaultyou / tradingview-alerts-processor

Minimalist service designed to execute TradingView webhooks and process them to cryptocurrencies exchanges.
MIT License
79 stars 23 forks source link

Enable running unit tests #22

Closed leifjones closed 3 years ago

leifjones commented 3 years ago

With these changes, it is now possible to run unit tests via npm test. A later stage could include automating those tests through GitHub Actions if that is deemed worthwhile.

I also added a few tests of a few functions - just starting with some low-hanging fruit to get started.

Feedback is welcome.

thibaultyou commented 3 years ago

Thanks @mrsegen, there's still a lot to do about testing on this project so your contribution is highly appreciated 🙏 .

I'll improve coverage over time once I've more time to spend on it.