Closed Roshanjossey closed 3 years ago
Currently, fetch failure scenario for hub actions is not tested. Add test for it.
Fork this repository by clicking on fork button on the top right. This will create a copy of this repository on your account.
Clone your fork. Get the URL of your fork by clicking on code button on GitHub. Clone it to your local with command git clone <URL you copied>
code
git clone <URL you copied>
git clone <https://github.com/><your-username>/dashboard.git.
git clone <https://github.com/><your-username>/dashboard.git
Install dependencies using command npm i.
npm i
cd dashboard npm i
Run dashboard via the following ways .
npm run dev
Run npm test from your console.
npm test
When you're done working, make sure that npm run test passes without any errors.
npm run test
In src/redux/hub/hub.test.ts. You can see similar tests in redux/*/
src/redux/hub/hub.test.ts
redux/*/
We use a library called jest for unit tests. Their documentation is quite helpful.
If you're interested in working on this issue, please write a comment down below. ๐ฌ
If you need any help or have questions, you can ask questions here or ask in our slack group
This issue is stale because it has been open 20 days with no activity. Remove stale label or comment or this will be closed in 4 days
Currently, fetch failure scenario for hub actions is not tested. Add test for it.
๐ป How to run this project locally
Fork this repository by clicking on fork button on the top right. This will create a copy of this repository on your account.
Clone your fork. Get the URL of your fork by clicking on
code
button on GitHub. Clone it to your local with commandgit clone <URL you copied>
git clone <https://github.com/><your-username>/dashboard.git
.Install dependencies using command
npm i
.Run dashboard via the following ways .
Run in the debug mode
npm run dev
๐งช How to unit tests
Run
npm test
from your console.When you're done working, make sure that
npm run test
passes without any errors.๐ Where to make changes?
In
src/redux/hub/hub.test.ts
. You can see similar tests inredux/*/
๐ How to learn about writing integration tests?
We use a library called jest for unit tests. Their documentation is quite helpful.
๐๏ธ I want to work on this.
If you're interested in working on this issue, please write a comment down below. ๐ฌ
If you need any help or have questions, you can ask questions here or ask in our slack group