Small project that applies TDD and BDD concepts
From the root run the following:
'yarn install' or 'npm install'
to run the jest unit tests (for tdd)
1. run 'npm test'
a. this will execute jest --watchall
b. give it a few minutes to trigger the tests, if that doesn't work edit a file and save.
c. test cases is found under tests/tdd
to run the features (for bdd)
1. execute the following line './node_modules/.bin/cucumber-js --require-module="@babel/register" ./tests/bdd/features_cucumber'
a. features and steps can be found under tests/bdd
NOTE:
- This JS application uses apis (or services) to modify data. I created a domain file where all the classes / domains sits that the services and tests rely on.