Description
Context: we need a way to simulate having many texters on spoke at the same time so we can measure how well the system performs at scale without undue risk of prod breakage. Goal of these perf testing tasks is not to load test the entire system end-to-end, but be able to load test just the parts of the code we change, so that we can have some sense ahead of time whether code changes we're about to roll out will causing scaling issues.
Using test/backend.test.js as an example of how to mock out the current logged in user, and https://github.com/MoveOnOrg/Spoke/blob/master/src/server/api/schema.js#L323 as an example of how to mock twilio interaction, write a test that mock logs in as a user, sends a configurable number of mocked text messages associated with a mocked campaign, and responds to mocked replies.
Document how to run this test on a locally run server using your local postgres database, and also pointing at the staging postgres database.