danbenitezf / react-apprenticeship-search-exercise

Search Exercise for Testing Module

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Search Exercise for Testing Module

How To

  • Create a fork of this repository
  • Clone your fork locally
  • Open folder and on the terminal, run npm i
  • Once it's finished, you can run npm test to make sure everything is working correctly

Exercise

Given a list of requirements for a Search component, create said component following TDD mindset. All tests can be added on Search.test.js and the implementation on Search.js

Requirements

  • The result list will only change once the Search button is pressed
  • It can’t send an empty search
  • It needs to show at most 3 results

UI mockup of search component that includes an input with the value "Luke Skywalker", a search button and a list item with the value "Luke Skywalker"

About

Search Exercise for Testing Module


Languages

Language:JavaScript 44.4%Language:HTML 36.1%Language:CSS 19.5%