---
url: /api/kiln/test/functions/scenarioApp.md
---
[Kiln API](../../../index.md) / [kiln/test](../index.md) / scenarioApp

# Function: scenarioApp()

```ts
function scenarioApp(options?, root?): Promise<App>;
```

Builds an app the way scenario() does, for tests that manage their own lifecycle.

## Parameters

| Parameter | Type |
| ------ | ------ |
| `options` | [`ScenarioOptions`](../interfaces/ScenarioOptions.md) |
| `root` | `string` |

## Returns

`Promise`<[`App`](../../classes/App.md)>
