jina-ai / dashboard

Interactive UI for analyzing Jina logs, designing Flows and viewing Hub images
https://dashboard.jina.ai
Apache License 2.0
118 stars 61 forks source link

๐Ÿงช Create unit test for hub images fetch failure. #359

Closed Roshanjossey closed 3 years ago

Roshanjossey commented 3 years ago

Currently, fetch failure scenario for hub actions is not tested. Add test for it.

๐Ÿ’ป How to run this project locally

  1. Fork this repository by clicking on fork button on the top right. This will create a copy of this repository on your account.

  2. 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>

    git clone <https://github.com/><your-username>/dashboard.git.

  3. Install dependencies using command npm i.

    cd dashboard
    npm i
  4. 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 in redux/*/

๐Ÿ“– 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

jina-bot commented 3 years ago

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