---
url: https://huldoser.github.io/test-inventory/api/interfaces/Diagnostic.md
---
# Interface: Diagnostic

## Properties

### code

> **code**: [`DiagnosticCode`](../type-aliases/DiagnosticCode.md)

***

### level

> **level**: `"error"` | `"warning"`

***

### message

> **message**: `string`

One sentence describing the problem.

***

### relativeFilePath

> **relativeFilePath**: `string`

***

### lineStart

> **lineStart**: `number` | `null`

null for problems with the whole file.

***

### columnStart

> **columnStart**: `number` | `null`

null for problems with the whole file.

***

### testId

> **testId**: `string` | `null`

The affected test; null when none.

***

### source

> **source**: `string` | `null`

Source text involved, shortened when long; null when none.
