All Projects → zpratt → React Tdd Guide

zpratt / React Tdd Guide

Licence: mit
A series of examples on how to TDD React

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to React Tdd Guide

Bioc Refcard
Bioconductor cheat sheet
Stars: ✭ 152 (-74.02%)
Mutual labels:  guide, howto
Golang For Nodejs Developers
Examples of Golang compared to Node.js for learning
Stars: ✭ 2,698 (+361.2%)
Mutual labels:  guide, howto
Enzyme Matchers
Jasmine/Jest assertions for enzyme
Stars: ✭ 881 (+50.6%)
Mutual labels:  tdd, enzyme
js-stack-from-scratch
🌺 Russian translation of "JavaScript Stack from Scratch" from the React-Theming developers https://github.com/sm-react/react-theming
Stars: ✭ 394 (-32.65%)
Mutual labels:  enzyme, guide
my-react-todolist
A guide to TDD a React/Redux TodoList App
Stars: ✭ 22 (-96.24%)
Mutual labels:  enzyme, tdd
An Idiots Guide To Installing Arch On A Lenovo Carbon X1 Gen 6
so you wanted to install arch huh
Stars: ✭ 165 (-71.79%)
Mutual labels:  guide, howto
Should Enzyme
Useful functions for testing React Components with Enzyme.
Stars: ✭ 41 (-92.99%)
Mutual labels:  tdd, enzyme
Keybase Gpg Github
Step-by-step guide on how to create a GPG key on keybase.io, adding it to a local GPG setup and using it with Git and GitHub.
Stars: ✭ 2,506 (+328.38%)
Mutual labels:  guide, howto
Examin
Examin is a developer tool that generates React unit tests for your application. Ensure your application renders as expected before adding new features. Examin writes the baseline unit tests and allows developers to customize their tests for their application.
Stars: ✭ 75 (-87.18%)
Mutual labels:  enzyme, tdd
React Vt
Data-driven visual testing library for React developers
Stars: ✭ 340 (-41.88%)
Mutual labels:  tdd, enzyme
Introneuralnetworks
Introducing neural networks to predict stock prices
Stars: ✭ 486 (-16.92%)
Mutual labels:  guide
Curtain
一个Android 高亮View蒙层库
Stars: ✭ 492 (-15.9%)
Mutual labels:  guide
Setup.py
📦 A Human's Ultimate Guide to setup.py.
Stars: ✭ 4,963 (+748.38%)
Mutual labels:  guide
Jasmine Matchers
Write Beautiful Specs with Custom Matchers for Jest and Jasmine
Stars: ✭ 552 (-5.64%)
Mutual labels:  tdd
Bash Handbook
📖 For those who wanna learn Bash
Stars: ✭ 4,691 (+701.88%)
Mutual labels:  guide
Spring Guide
Spring 실전 가이드
Stars: ✭ 521 (-10.94%)
Mutual labels:  guide
Espressif
all espressif stuff will committed here
Stars: ✭ 477 (-18.46%)
Mutual labels:  howto
Wasm And Rust
WebAssembly and Rust: A Web Love Story
Stars: ✭ 476 (-18.63%)
Mutual labels:  guide
Css The Definitive Guide 4th Zh
《CSS权威指南第四版》中文翻译
Stars: ✭ 474 (-18.97%)
Mutual labels:  guide
Guide
Kubernetes clusters for the hobbyist.
Stars: ✭ 5,150 (+780.34%)
Mutual labels:  guide

react-tdd-guide

A series of examples on how to TDD React

Getting started

  1. install nvm
  • Grab an editor or IDE. I recommend Webstorm, Atom, and VIM, in that order.
  • git clone ...
  • nvm install 4 OR if v4 of node.js is installed, nvm use
  • npm i

How to use this guide

Each section is broken out into its own folder, starting with basics. What you'll find there is the finished example. I am experimenting with using the commit history and comments to drive the guide itself. Feedback on whether this works or not would be appreciated.

Each commit that is suffixed with "- red" can be checked out separately to examine the failing test. Each commit that is suffixed with "- green" shows how I finally passed the failing assertion.

Looking at the history for each section will show you only the steps needed to drive that part of the application.

Philosophy

  • Avoid the need for runners and browsers
    • Achieved by using mocha and enzyme

Table of Contents

  • Basics - Steps for TDD'ing the simplest of React components: An unordered list of items. Start here if you're not familiar with TDD'ing React and want to see a simple introduction.
  • Simple event handling (WIP)
  • Simple stateful input
  • Centralized state management techniques (not done)
  • Redux (not done)
  • React router (not done)

Running the tests for a section

  • npm run <section name>

Running all tests

  • npm test

Contributing

Please feel free to open an issue for:

  • A question on how to do something
  • A request for further clarification

Use a pull request for

  • Suggestions on changing how something is tested
  • To add an example you think would be valuable

Caveats

I am not a windows user, therefore this has only been tested on OSX.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].