- Install Latest stable Node as per your system configuration.
git clone https://github.com/rishabjn/string-calculator.gitnpm install npm run build npm run test - You can run the script by executing
npm run buildand providing your desired inputString in stringCalculator - Below is a sample output from the terminal.
- We use the Jest framework to test the script. Learn more about it here
- Run
npm run testto execute all test cases for the string calculator. - With Test-Driven Development (TDD), the logic is fully covered by test cases in stringCalculator.test
- Below is a screenshot showing the test results.