3 ms·
Can anyone explain how should I go about writing unit tests for JavaScript? The code mostly creates the ui (i.e. create button and input controls dynamically) a
by nicolasiac 11y ago
Can anyone explain how should I go about writing unit tests for JavaScript? The code mostly creates the ui (i.e. create button and input controls dynamically) and then displays and updates data. We thought about using intern but I don't really know what should the tests be about. The backend is already test driven so I don't have to test that the data is actually saved.
- znt 11y agoHow about this: https://facebook.github.io/jest/ https://facebook.github.io/jest/ It lets you run your tests on node.js, so your test runner does not have to start a browser etc.