<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@contract-case/case-boundary](./case-boundary.md) &gt; [ITriggerFunction](./case-boundary.itriggerfunction.md) &gt; [trigger](./case-boundary.itriggerfunction.trigger.md)

## ITriggerFunction.trigger() method

Trigger the user's test code and test the response from it.

**Signature:**

```typescript
trigger(config: Record<string, unknown>): Promise<BoundaryResult>;
```

## Parameters

| Parameter | Type                          | Description |
| --------- | ----------------------------- | ----------- |
| config    | Record&lt;string, unknown&gt; |             |

**Returns:**

Promise&lt;[BoundaryResult](./case-boundary.boundaryresult.md)<!-- -->&gt;

BoundarySuccess when successful; BoundaryFailure with kind=BoundaryFailureKindConstants.CASE_TRIGGER_ERROR if the trigger fails; BoundaryFailure with kind=BoundaryFailureKindConstants.CASE_VERIFY_RETURN_ERROR if the verification function fails.
