twilio-labs / actions-sms

Send an SMS through GitHub Actions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add testing via jest

dkundel opened this issue · comments

We should add some basic testing using jest. This might require some refactoring to make the code a bit more testable.

I'd like to work on this

That would be great :) let me know if you need anything from me!

Is there a reason node_modules are checked in?

Yes those are the production dependencies only. It's a GitHub actions thing. i described it in #6

I exported a function in main to test since I wanted to minimize the changes in case there were other changes on going. Probably should pull the code out of main.js when things are stable.