Skip to content

Latest commit

 

History

History
85 lines (40 loc) · 1.16 KB

tryorama.runscenario.md

File metadata and controls

85 lines (40 loc) · 1.16 KB

Home > @holochain/tryorama > runScenario

runScenario() function

A wrapper function to create and run a scenario. A scenario is created and all involved conductors are shut down and cleaned up after running.

Signature:

runScenario: (testScenario: (scenario: Scenario) => Promise<void>, cleanUp?: boolean, options?: ScenarioOptions) => Promise<void>

Parameters

Parameter

Type

Description

testScenario

(scenario: Scenario) => Promise<void>

The test to be run.

cleanUp

boolean

(Optional) Whether to delete conductors after running.

options

ScenarioOptions

(Optional)

**Returns:**

Promise<void>