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

Implement Unit Tests #66

Open
henrymxu opened this issue Dec 30, 2020 · 1 comment
Open

Implement Unit Tests #66

henrymxu opened this issue Dec 30, 2020 · 1 comment
Labels
testing Testing

Comments

@henrymxu
Copy link
Owner

  • Add unit tests (using jest?)
  • Mocking discordjs might be hard
  • Some helpful articles / documentation for implementing tests

https://medium.com/@RupaniChirag/writing-unit-tests-in-typescript-d4719b8a0a40
https://jestjs.io/docs/en/getting-started
https://medium.com/codeclan/mocking-es-and-commonjs-modules-with-jest-mock-37bbb552da43
https://flaviocopes.com/jest/#mocking
https://dev.to/jackcaldwell/mocking-es6-class-methods-with-jest-bd7

@henrymxu henrymxu added the testing Testing label Dec 30, 2020
@ImSparrow
Copy link

did you ever end up writing unit test?

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

No branches or pull requests

2 participants