Unit Testing Pulumi programs in TypeScript with Wallaby

An example of writing mock-based unit tests with both infrastructure definition and tests written in TypeScript. The example uses the Mocha test framework to define and run the tests. Example originally from here.

Prerequisites

  1. Ensure you have the latest Node.js and NPM.
  2. Install the Mocha test framework.

Running the tests

  1. Restore NPM dependencies:

    $ npm install
    
  2. Start Wallaby, making sure to select the configuration file. Refer to Wallaby docs for more information on starting Wallaby.