-
Can we mock the DOM like ReactJS does? ReactJS renders DOM by itself. Can we mock the DOM with Jemplate? -> Cannot find Mocha is running on Node.js, can this work for jemplate? https://www.npmjs.com/package/jemplate -> It will be required loading all JS & template files
-
How is ReactJS tested? ->
jsdomrenders DOM -
What kind of test? -> UI test, if the element has the class, for example
http://www.hammerlab.org/2015/02/14/testing-react-web-apps-with-mocha/ http://www.bebetterdeveloper.com/coding/getting-started-react-mocha.html https://ole.michelsen.dk/blog/testing-reactjs-with-coverage-using-mocha-babel-istanbul.html https://github.com/tmpvar/jsdom https://github.com/rstacruz/mocha-jsdom https://semaphoreci.com/community/tutorials/testing-react-components-with-enzyme-and-mocha