How to add tests
#3466
-
Hi @rickstaa, @qwerty541, I was having a doubt that how should the test be added? Like for this PR - card width of gist card, how should I add the tests for this? |
Beta Was this translation helpful? Give feedback.
Answered by
rickstaa
Nov 10, 2023
Replies: 1 comment 2 replies
-
@yaten2302, thanks for contributing to GRS 🎉. The tests of the gist card are found in the tests/renderGistCard.test.js file. We use jest as our testing provider. You can check out the CONTRIBUTING.md to see how to run and debug tests. For your specific use case since the github-readme-stats/tests/renderStatsCard.test.js Lines 78 to 122 in b0bb994 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thats correct. You might, however, need to change the width values to make them pass.