Self-healing history CRUD backed by SQLite.
Members
(inner) _migrated
Upsert a healing entry.
Methods
(static) countByTestIds(testIds) → {number}
Count healing entries for specific test IDs.
Parameters:
| Name | Type | Description |
|---|---|---|
testIds |
Array.<string> |
Returns:
- Type
- number
(static) countSuccessesByTestIds(testIds) → {number}
Count successful healing entries for specific test IDs.
Parameters:
| Name | Type | Description |
|---|---|---|
testIds |
Array.<string> |
Returns:
- Type
- number
(static) deleteByTestIds(testIds)
Delete healing entries for a list of test IDs.
Parameters:
| Name | Type | Description |
|---|---|---|
testIds |
Array.<string> |
(static) get(key) → {Object|undefined}
Get a healing entry by key.
Parameters:
| Name | Type | Description |
|---|---|---|
key |
string | — " |
Returns:
- Type
- Object | undefined
(static) getAllAsDict() → {Object.<string, Object>}
Get all healing entries as a dictionary keyed by composite key.
Returns:
- Type
- Object.<string, Object>
(static) getByTestId(testId) → {Object.<string, Object>}
Get all healing entries for a specific test (keys starting with "
Accepts both raw test IDs ("TC-1") and versioned scope IDs
("TC-1@v2"). When a versioned scope is passed we also query the
legacy (unversioned) prefix so that pre-existing healing entries
remain readable after upgrading to versioned scopes.
Parameters:
| Name | Type | Description |
|---|---|---|
testId |
string | — raw test ID or versioned scope ID |
Returns:
Map of "action::label" → entry.
- Type
- Object.<string, Object>