sandboxnu / boba-buddies

Sandbox's virtual water cooler conversation app.
GNU General Public License v3.0
1 stars 0 forks source link

Add pairing logic and ts-node #8

Closed VKong6019 closed 3 years ago

VKong6019 commented 3 years ago

hey buddies,

I saw jia start the slack bot dms 👀, so I thought I just make this into a pr to expedite the process.

The way the pairing works in generatePair.ts is that it'll partition an array of users in a channel by 2s. If there's an uneven number of people, then add that loner into some existing pair.

Idk if this is added in my commits, but I installed ts-node and used that to run typescript files easily. so then I just do ts-node pairAndIntroduce.ts https://www.npmjs.com/package/ts-node

VKong6019 commented 3 years ago

Lol i thought my package-lock was committed, oops.

And yea i can add in Jest tests, say no more 😎

VKong6019 commented 3 years ago

since im lazy, you can also refer to this test.md doc i wrote up a while ago when i used to be in PharmD. https://github.com/sandboxnu/pharmd-tracker-backend/blob/dev/src/controller/__tests__/Tests.md

A lot of the stuff will probably refer to PharmD specific tech stack, but there's a good amount of general info about Jests and tests too :D.