Learning project for test automation with TypeScript and Jest.
The project includes four simple examples:
Account— a positive initial balance creates anACTIVEaccount, while a zero or negative balance creates aPENDINGaccount.User— store a name and age, verify the user, and check whether the user is an adult. Its test file contains test placeholders for future exercises.Card— a bank card with a daily limit, blocking, number hiding and payments. Its test file already has abeforeEachthat creates the card, and most tests are// TODOplaceholders to fill in.RiskCalculator— calculates aLOW,MEDIUMorHIGHrisk level for anApplicationby its balance: up to 10 000 isLOW, up to 25 000 isMEDIUM, above that (or a negative balance) isHIGH. Its test file has three suites (one for each risk level), and the application for each is created intest/helper/application.helpers.ts.