thenewboston-blockchain/Website

UNIT TESTS - components/HashLink

Closed this issue · 0 comments

What

Create unit tests using Jest and React Testing Library.

Here are a couple examples of how unit tests should be created:

  1. Unit tests for our A component
  2. Unit tests for Icon component
  3. Unit tests for Button component

General Acceptance Criteria for writing Unit tests

  1. Should create a [nameOfComponent].test.tsx within the same directory of the component.
  2. Should have tests that tests every prop of the component.
  3. If there are any conditional logic within the component, there should be unit tests that accounts for each conditional branches.
  4. npm run test should be passing.

Specific Acceptance Criteria

  1. make sure you tests for each prop