---
url: https://huldoser.github.io/test-inventory/api/type-aliases/TestChange.md
---
# Type Alias: TestChange

> **TestChange** = `object` & ({ `match`: [`MatchMethod`](MatchMethod.md); `before`: [`TestRecord`](../interfaces/TestRecord.md); `after`: [`TestRecord`](../interfaces/TestRecord.md); } | { `match`: `null`; `before`: [`TestRecord`](../interfaces/TestRecord.md); `after`: `null`; } | { `match`: `null`; `before`: `null`; `after`: [`TestRecord`](../interfaces/TestRecord.md); })

One addition, removal or changed test. Locations and records come from the saved scans unchanged.

## Type Declaration

### kinds

> **kinds**: [`ChangeKind`](ChangeKind.md)\[]

### changedFields

> **changedFields**: (keyof [`TestRecord`](../interfaces/TestRecord.md))\[]

Changed record keys, excluding locations and ids. Hashes are included only when comparable.
