Skip to content
This repository has been archived by the owner on Oct 5, 2022. It is now read-only.

🧪 Create unit test for hub images fetch failure. #359

Closed
Roshanjossey opened this issue Sep 1, 2021 · 1 comment
Closed

🧪 Create unit test for hub images fetch failure. #359

Roshanjossey opened this issue Sep 1, 2021 · 1 comment
Labels
good first issue Good for newcomers Stale

Comments

@Roshanjossey
Copy link
Contributor

Roshanjossey commented Sep 1, 2021

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

@Roshanjossey Roshanjossey added the good first issue Good for newcomers label Sep 1, 2021
@jina-bot
Copy link
Member

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
good first issue Good for newcomers Stale
Projects
None yet
Development

No branches or pull requests

2 participants