Skip to content

WIP: Jesting and testing

Michiya requested to merge jestingAndTesting into master

Feature Merge Request

Related Issue

Description of Feature

This MR adds tests to our front-end code. The tests can be run with: $ npm run test:react

Dependencies introduced:

  • jest
  • babel-jest, babel-core, babel presets

Dependencies updated:

  • react and react-dom: updated from v15.x to v16.x
  • eth-dagger, ethereumjs-abi, truffle-hdwallet-provider, and web3 updated to latest versions

Files added:

  • .babelrc file to configure babel transpiler to work with jest
  • .spec files to test corresponding front-end files

Tests Added:

First added are simple tests for front-end behavior of reducers and action creators.

// COMING UP:
// - code coverage // - script with watch mode // - tests for async action creators // - tests for UI of app

Motivation and Context

Screenshots, Code, Links

Related Tasks

  • [ ]

What's Next?


Merge request reports