This example is based on the React Redux example.
-
Install the JRE or JDK. This demo uses Selenium, which requires Java, to run WebDriver tests.
-
Install node modules
npm install
-
Build the example (this is necessary for functional tests to work)
$ npm run build
Unit tests in Node
$ npm test
WebDriver tests
$ npm test webdriver
In the intern.json
file, there are separate browserSuites
and nodeSuites
properties. This is because some of the
unit tests don't work in the browser, but all of them will work in Node.