upnotes-io / react-todo

A generic todo list componet for react. This is being used in an electron based app: https://upnotes.io
8 stars 41 forks source link

Add jest tests with github action to execute test on every PR and merge #23

Closed kamalkishor1991 closed 1 year ago

kamalkishor1991 commented 1 year ago
  1. Introducing jest for testing scenario with writing few high level tests for each component.
  2. Adding github action to execute tests on each PR and merge.
jisundr commented 1 year ago

Hi @kamalkishor1991 i think this issue can break into smaller tasks.

  1. Setup the jest first.
  2. Create a test per component.

What do you think?

kamalkishor1991 commented 1 year ago

@jisundr yes I agree. I think setting up jest should have at least one test and it should also include setting up PR checks using github action.

jisundr commented 1 year ago

Let me work on this. I'll set up the jest and the github action

Do you want to include the lint on PR checks?

kamalkishor1991 commented 1 year ago

sure. thanks

jisundr commented 1 year ago

hi @kamalkishor1991 please assign this to me. Thanks.