This is a dummy app against which the tests are written.
App UI calls an api /api/currency/{country}
which is considered as a third party API
npm install .
npm start
App starts on port :3000. Access app using http://localhost:3000
./node_modules/.bin/cypress open
This would open the cypress UI. Click on get_currency.spec.js
to run the tests.
There are 2 tests
- Fetches currency for a valid country
- Mocks a 404 for the api can checks the message
./node_modules/.bin/cypress run