mkevenaar / NickNelson

A bot for a HeartStopper server
MIT License
3 stars 2 forks source link

Add Jest test setup and CodeCov (+workflow) #22

Closed davidzwa closed 2 years ago

davidzwa commented 2 years ago

Currently many runtime bugs can occur. Jest testing can prevent a lot of this.

Expected Behavior

Developing a feature should be validated through tests.

Current Behavior

Runtime bugs can only be caught by running the code.

Possible Solution

Set-up mongodb-memory-server jest and jest-util to cover the Bot with tests. https://github.com/fdm-monster/fdm-monster/tree/develop/server/test

Steps to Reproduce (for bugs)

.

Context

Dev testing

mkevenaar commented 2 years ago

@davidzwa that is a great idea, I am happy to set things up on my end if required!

Would you be able to help us get started, if you want?

davidzwa commented 2 years ago

I will change the title so I wont have to cover all the code. Will add the setup 👍🏼

mkevenaar commented 2 years ago

Issue should be closed, once PR is merged

davidzwa commented 2 years ago

Issue should be closed, once PR is merged

You are completely correct, apologies! I was a bit too quick.

mkevenaar commented 2 years ago

:tada: This issue has been resolved in version 0.1.0 :tada: