项目作者: romarioraffington

项目描述 :
A simple tutorial on unit testing React apps
高级语言: JavaScript
项目地址: git://github.com/romarioraffington/react-filterable-product-table.git
创建时间: 2017-08-12T20:54:40Z
项目社区:https://github.com/romarioraffington/react-filterable-product-table

开源协议:MIT License

下载


Filterable Product Table :cake: :sushi: :rice_ball: :fries: CircleCI

View the:

  • Demo :bowtie:
  • @romarioraff/testing-react-apps-with-jest-and-chai-enzyme-for-beginners-baa5f57cec0b">Medium Article :page_facing_up:

This is simple React application that was orginally created for the Thinking in React post in the React docs.

This repository goes along with the medium article titled Testing React Apps with Jest and chai-enzyme for Beginners. In that article I talked about the tools, folder stucture and my thought process when testing React applications.

Component Breakdown

The app is broken down into 5 components:

Components

  • FilterableProductTable (orange): contains the entirety of the example
  • SearchBar (blue): receives all user input
  • ProductTable (green): displays and filters the data collection based on user input
  • ProductCategoryRow (turquoise): displays a heading for each category
  • ProductRow (red): displays a row for each product

Getting Started

  1. $ git clone https://github.com/romarioraffington/react-filterable-product-table.git
  2. $ npm install
  3. $ npm start

Running Tests

  1. $ npm test

Building the Project

  1. $ npm run build

Contributing

Feel free to submit a pull requests! For specifics on how to contribute to this project, check out the contributing file.

License

This project is released under the MIT License.