---
oat_generated: false
oat_template: true
oat_template_name: testing
---

<!--
Vendored from: https://github.com/glittercowboy/get-shit-done
License: MIT
Original: agents/gsd-codebase-mapper.md (embedded template)
Modified: 2026-01-27 - Adapted for OAT (added frontmatter)
-->

# Testing Patterns

**Analysis Date:** [YYYY-MM-DD]

## Test Framework

**Runner:**

- [Framework] [Version]
- Config: `[config file]`

**Assertion Library:**

- [Library]

**Run Commands:**

```bash
[command]              # Run all tests
[command]              # Watch mode
[command]              # Coverage
```

## Test File Organization

**Location:**

- [Pattern: co-located or separate]

**Naming:**

- [Pattern]

**Structure:**

```
[Directory pattern]
```

## Test Structure

**Suite Organization:**

```typescript
[Show actual pattern from codebase]
```

**Patterns:**

- [Setup pattern]
- [Teardown pattern]
- [Assertion pattern]

## Mocking

**Framework:** [Tool]

**Patterns:**

```typescript
[Show actual mocking pattern from codebase]
```

**What to Mock:**

- [Guidelines]

**What NOT to Mock:**

- [Guidelines]

## Fixtures and Factories

**Test Data:**

```typescript
[Show pattern from codebase]
```

**Location:**

- [Where fixtures live]

## Coverage

**Requirements:** [Target or "None enforced"]

**View Coverage:**

```bash
[command]
```

## Test Types

**Unit Tests:**

- [Scope and approach]

**Integration Tests:**

- [Scope and approach]

**E2E Tests:**

- [Framework or "Not used"]

## Common Patterns

**Async Testing:**

```typescript
[Pattern];
```

**Error Testing:**

```typescript
[Pattern];
```

---

_Testing analysis: [date]_
