Simple project to showcase Pact testing
Both frontend
and backend
have npm test
commands to test each service separately.
By running npm test
in the frontend
folder - will generate a contract for the provider (backend
). The contract is then located in frontend/pacts/frontend-backend.json
To test backend
against new contract:
- copy newly generated contract to backend/pacts/frontend-backend.json
- run
npm test
insidebackend
folder