@pulumi/pulumi
    Preparing search index...

    Function setMocks

    • Configures the Pulumi runtime to use the given mocks for testing.

      Parameters

      • mocks: Mocks

        The mocks to use for calls to provider functions and resource construction.

      • Optionalproject: string

        If provided, the name of the Pulumi project. Defaults to "project".

      • Optionalstack: string

        If provided, the name of the Pulumi stack. Defaults to "stack".

      • Optionalpreview: boolean

        If provided, indicates whether or not the program is running a preview. Defaults to false.

      • Optionalorganization: string

        If provided, the name of the Pulumi organization. Defaults to nothing.

      Returns Promise<void>