Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test support for the send-reminders script. #17

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

NathanWEdwards
Copy link
Collaborator

This pull request contains changes to offer Jest test support to the Courtbot VT project.

Development dependencies have been added to package.json for test and versioning of existing packages have been updated. The following dependencies have been added:

  • jest, ts-jest and type declarations as a test framework
  • async-mutex for handling concurrency

The send-reminders.ts script containing an immediately invoked function expression has been modified for test support enablement. This request modifies send-reminders.ts to expose the content that is present in the grouping operator of the IIFE, as an exported function of the module, when under test.

Several tests have been added and initial mock representations have been added for Mongoose and Twilio.

@iamyume
Copy link
Collaborator

iamyume commented Jan 25, 2023

finally taking a look at this. So far it looks good but it might useful to add a test command in the scripts section of package.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants