> ## Documentation Index
> Fetch the complete documentation index at: https://docs.agentfront.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Test Executor

> Run E2E tests using frontmcp test

Runs E2E tests using the auto-injected Jest configuration from `@frontmcp/testing`.

## Usage

```bash theme={"theme":{"light":"snazzy-light","dark":"dark-plus"}}
nx test my-app
nx test my-app --runInBand --coverage
```

## Configuration

```json project.json theme={"theme":{"light":"snazzy-light","dark":"dark-plus"}}
{
  "targets": {
    "test": {
      "executor": "@frontmcp/nx:test",
      "options": {
        "runInBand": true
      }
    }
  }
}
```

## Options

| Option | Type | Default | Description |
| - | - | - | - |
| `runInBand` | `boolean` | `false` | Run tests serially (recommended for E2E) |
| `watch` | `boolean` | `false` | Watch mode |
| `coverage` | `boolean` | `false` | Collect test coverage |
| `verbose` | `boolean` | `false` | Verbose output |
| `timeout` | `number` | — | Test timeout in ms |

## Caching

This executor runs `frontmcp test` from the project root and is **cacheable** when the target sets `"cache": true` (generated projects do, and `nx add @frontmcp/nx` registers it in `targetDefaults`). Test results are cached when inputs haven't changed. Use with `coverage` for reproducible reports.

```bash theme={"theme":{"light":"snazzy-light","dark":"dark-plus"}}
# Run tests for affected projects only
nx affected -t test
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.