KaoushikMurugan / yet-another-better-office-hour-bot

Yet Another Better Office-Hours Bot
https://tomli380576.github.io/yabob-docs/
GNU General Public License v3.0
11 stars 1 forks source link

Revamp Build, CI/CD, Testing setup #116

Open tomli380576 opened 1 year ago

tomli380576 commented 1 year ago

It's basically impossible to manually test YABOB now given how many commands and buttons we have.

tomli380576 commented 1 year ago

We will use jest. Integration tests can be skipped for now.

tomli380576 commented 10 months ago

https://stackoverflow.com/questions/60916450/jest-testing-discord-bot-commands

tomli380576 commented 9 months ago

Jest is absolute hell to setup with discord.js 💀 if anyone wants to try setting it up feel free to

tomli380576 commented 9 months ago

Node native tests seems to work well. No extra dependencies: https://nodejs.org/api/test.html

tomli380576 commented 7 months ago

We will also use ts-mockito for creating mocks https://github.com/NagRock/ts-mockito