How to do it...

  1. Create the upstream and downstream projects from the following templates:
$ sls create --template-url https://github.com/danteinc/js-cloud-native-cookbook/tree/master/ch6/contract-testing-async/upstream --path cncb-contract-testing-async-upstream$ sls create --template-url https://github.com/danteinc/js-cloud-native-cookbook/tree/master/ch6/contract-testing-async/downstream --path cncb-contract-testing-async-downstream
  1. Navigate to the upstream directory with cd cncb-contract-testing-async-upstream.
  2. Install the dependencies with npm install.
  3. Run the unit test with npm test.
  4. Run the integration tests in replay mode with npm run test:int.
  5. Review the files in the ./fixtures/downstream-consumer-x directory.
  6. Review the file named ...

Get JavaScript Cloud Native Development Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.