PLT-5755: Infrastructure for Component Testing. (#5814)

This migrates the existing webapp tests to using Jest and Enzyme. The
infrastructure is put in place for React component testing, and a few
simple example component tests are implemented.

This also adds snapshot testing of components, coverage checking for the
webapp (although that is not yet integrated to Coveralls), and the
ability to run npm run test:watch to automatically re-run affected tests
when working on the webapp codebase.
This commit is contained in:
George Goldberg
2017-03-23 18:05:36 +00:00
committed by Christopher Speller
parent c6ded1dbfd
commit 7d449e0556
40 changed files with 1426 additions and 799 deletions

7
webapp/.babelrc Normal file
View File

@@ -0,0 +1,7 @@
{
"presets": [
"es2015",
"react",
"stage-0"
]
}