(scenarioPath: string)
| 25 | export {Result}; |
| 26 | |
| 27 | async function loadScenario(scenarioPath: string): Promise<TestScenario> { |
| 28 | const module = await import(pathToFileURL(scenarioPath).href); |
| 29 | if (!module.scenario) { |
| 30 | throw new Error( |
| 31 | `Scenario file ${scenarioPath} does not export a 'scenario' object.`, |
| 32 | ); |
| 33 | } |
| 34 | return module.scenario; |
| 35 | } |
| 36 | |
| 37 | async function runSingleScenario( |
| 38 | scenarioPath: string, |
no outgoing calls
no test coverage detected
searching dependent graphs…