# createTestGate

**Kind:** Function

**Source:** [`atloria-monorepo/libs/agent-core/src/autonomous/test-watcher.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/libs/agent-core/src/autonomous/test-watcher.ts#L227)

Creates a QualityGate array that checks whether tests pass.
If a TestWatcher is provided, uses its last result to avoid re-running.
If a LintTestLoop is provided, uses its state to check verification recency.

## Signature

```ts
function createTestGate(config: TestGateConfig, lintTestLoop: LintTestLoop, testWatcher: TestWatcher): QualityGate[]
```

## Parameters

| Name | Type |
|---|---|
| `config` | `TestGateConfig` |
| `lintTestLoop` | `LintTestLoop` |
| `testWatcher` | `TestWatcher` |

**Returns:** `QualityGate[]`
