Setup the testing environment for CS.Front.Modules. I converted the project to a create-react-app which allows us to use the testing environment and configuration provided by create-react-app. This also involves small changes in the CS.Front.Installer repository which are being done as well.
The testing environment uses jest as its test runner and enzyme for DOM manipulation and traversal.
To test:
Add __tests__ folder to the component folder, if not already present
Add a file with the extension .js
Write your tests as you normally would
yarn test will auto-compile and run the tests with every code change & save you do.
Setup the testing environment for CS.Front.Modules. I converted the project to a
create-react-app
which allows us to use the testing environment and configuration provided by create-react-app. This also involves small changes in the CS.Front.Installer repository which are being done as well.The testing environment uses jest as its test runner and enzyme for DOM manipulation and traversal.
To test:
__tests__
folder to the component folder, if not already present.js
yarn test
will auto-compile and run the tests with every code change & save you do.Fixes #28