Payment form React with TDD Kata
This project helps to learn shipping React app using Test-driven Development.
Dependencies
Make sure the following tools are available locally:
- Git
- Git Bash (for Windows users)
- Nodejs (at least v18)
- NPM (at least v8)
- Text editor (e.g., Webstorm, Intellij, VSCode)
- Chrome browser
Installation
- Clone this repository to your computer
- Install dependencies
npm install
Boot the app
npm start
The app is going to start at http://localhost:3000
The API at http://localhost:9000
Examine existing integration/unit test suit
npm test
Try E2E tests
Make sure the app is running at http://localhost:3000 (see Boot the app)
npm run cypress
Click on the makePayment.feature
file listed E2E specs within Cypress GUI.
Questions
If something doesn't work, please open an issue.