jebeck / martian-water-factory

A not-so-simple application to demo some React testing techniques.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

martian-water-factory

CircleCI

A not-so-simple example application to demonstrate some React application testing techniques, inspired by the water production process designed by Mark Watney in Andy Weir's novel The Martian.

context

This project is a companion to my talk "High-stakes React" from ReactNL in October 2016. The slides from that talk should be useful as a walk-through of what the code in this repository is intended to demonstrate.

running the example(s)

To start, clone this repository, then navigate inside the cloned directory martian-water-factory/ and install the dependencies with:

$ npm install

(You must have node and npm installed in order to run the examples. Refer to the Node website for installation instructions if you don't already have these installed.)

To run the app in order to understand the functionality being tested, use:

$ npm start

To run the tests, use:

$ npm test

NB: On some branches, the tests fail intentionally!

About

A not-so-simple application to demo some React testing techniques.

License:MIT License


Languages

Language:JavaScript 81.0%Language:HTML 12.3%Language:CSS 6.8%