/react-unit-test

Unit Test a ReactJS application

Primary LanguageJavaScript

react-unit-test

Sample configuration to unit test a ReactJS application.

The unit tests run in nodejs, without any browser.

The build is based on:

install node modules

npm install -D

build, test and watch

./node_modules/.bin/gulp

only build

./node_modules/.bin/gulp build

only test

./node_modules/.bin/gulp test

build for production

./node_modules/.bin/gulp build --production

clean

./node_modules/.bin/gulp clean