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

# Function: useScenarioApp()

```ts
function useScenarioApp(factory): void;
```

Sets the app factory for scenarios in this process (e.g. from a bun preload).

## Parameters

| Parameter | Type |
| ------ | ------ |
| `factory` | [`AppFactory`](../type-aliases/AppFactory.md) |

## Returns

`void`
