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

The deterministic comparison of two saved inventories.

## Properties

### schemaVersion

> **schemaVersion**: `1`

***

### tool

> **tool**: `object`

#### name

> **name**: `"test-inventory"`

#### version

> **version**: `string`

Version of test-inventory that produced the output.

***

### framework

> **framework**: `"playwright"` | `"vitest"` | `"jest"` | `"mocha"` | `"jasmine"` | `"cypress"` | `"webdriverio"` | `"node"` | `"bun"`

***

### beforeToolVersion

> **beforeToolVersion**: `string`

***

### afterToolVersion

> **afterToolVersion**: `string`

***

### hashesComparable

> **hashesComparable**: `boolean`

***

### summary

> **summary**: `Record`<[`ChangeKind`](../type-aliases/ChangeKind.md) | `"changed"` | `"unchanged"`, `number`>

Category counts overlap; changed counts matched tests, while unchanged counts matches with no changes.

***

### changes

> **changes**: [`TestChange`](../type-aliases/TestChange.md)\[]

***

### clones

> **clones**: `object`

#### before

> **before**: [`CloneGroup`](CloneGroup.md)\[]

#### after

> **after**: [`CloneGroup`](CloneGroup.md)\[]

***

### warnings

> **warnings**: `string`\[]
