Testing any application is critical. I often do not test my proof-of-concept projects. I haven’t fully configured testing for my current project! If you have any ideas or easy way to implement a javascript testing framework, let me know down in the comments. I am actively looking for a better way to test.
Testing
Backend:
- rspec -
./rspec/
Frontend:
-
chai, enzyme, and mocha - links to documentation -
./app/javascript/packs/test/
-
Using
npm test
should work after building thenode_modules
folder. Also the script should work as well,./node_modules/mocha-webpack/bin/mocha-webpack --webpack-config ./config/webpack/test.js ./app/javascript/packs/setupTests.js ./app/javascript/packs/test