Graphorin API reference v0.1.0
Graphorin API reference / @graphorin/tools / / getCounterForTesting
Function: getCounterForTesting()
ts
function getCounterForTesting(name, labels?): number;Defined in: packages/tools/src/audit/counters.ts:138
Experimental
Read a single counter (returns 0 when absent). Used by tests to make assertions on specific counter increments.
Parameters
| Parameter | Type |
|---|---|
name | string |
labels? | Readonly<Record<string, string | number | boolean>> |
Returns
number