chronograf icon indicating copy to clipboard operation
chronograf copied to clipboard

Chore: Add JS testing framework

Open kfitzpatrick opened this issue 10 years ago • 2 comments

kfitzpatrick avatar Sep 07 '16 20:09 kfitzpatrick

It might make sense to do this along with #28. All of the setup exists in EnterpriseWeb https://github.com/influxdata/enterprise/tree/master/ui/spec.

We used:

  • Mocha as a general test framework
  • chai (and sinon-chai) for assertions
  • sinon for http mocking and spies/stubs/mocks
  • karma as a test runner that supports multiple browsers
  • webpack-dev-server for in-browser tests

wfro avatar Sep 07 '16 20:09 wfro

• Use whatever create react app uses • Does it do sass out of the box?

nhaugo avatar Sep 13 '16 22:09 nhaugo