MaccessCount
Bun

method

test.default.MockPropertyContext.accessCount

accessCount(): number;

This function returns the number of times that the property was accessed. This function is more efficient than checking ctx.accesses.length because ctx.accesses is a getter that creates a copy of the internal access tracking array.

@returns

The number of times that the property was accessed (read or written).