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.
MockPropertyContext.accessCount method | Node.js node:test module | Bun BuildDocsReferenceGuidesBlogDiscord/node:test/default/MockPropertyContext/accessCountMaccessCount BuildDocsReferenceGuidesBlogDiscord /node:test/default/MockPropertyContext/accessCountMaccessCount test.default.MockPropertyContext.accessCountaccessCount(): number; @returns
Search the reference...
/
method
The number of times that the property was accessed (read or written).
Resources
ReferenceDocsGuidesDiscordMerch StoreGitHubBlogToolkit
RuntimePackage managerTest runnerBundlerPackage runnerProject
Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseBaked with ❤️ in San Francisco
We're hiring →MockPropertyContext.accessCount method | Node.js node:test module | Bun,AI智能索引,全网链接索引,智能导航,网页索引
- API documentation for method node:test.default.MockPropertyContext.accessCount | Bun