{"id":"eyycheev/jest-mock","name":"jest-mock","scope":"eyycheev","platform":"roblox","description":"Mirrored from the Wally registry.","version":"3.14.0-rbx.2","latest":"3.14.0-rbx.2","versions":["3.14.0-rbx.0","3.14.0-rbx.1","3.14.0-rbx.2"],"license":"MIT","licenseRating":"safe","licenseCaveats":["The package archive does not include its license text; the license is declared in its manifest metadata."],"licenseVerified":false,"dependencies":{"eyycheev/jest-mock-genv":{"version":"^3.14.0-rbx.2","alias":"JestMockGenv"},"eyycheev/jest-mock-rbx":{"version":"^3.14.0-rbx.2","alias":"JestMockRbx"},"eyycheev/jest-types":{"version":"^3.14.0-rbx.2","alias":"JestTypes"},"jsdotlua/luau-polyfill":{"version":"^1.2.7","alias":"LuauPolyfill"}},"integrity":"df43add3883588618c82cc13293ece3963ace31145844e97eecffbd0d9b3963f","likes":0,"downloads":0,"install":"forest install eyycheev/jest-mock","url":"https://forest.dev/p/roblox/eyycheev/jest-mock","files":"https://api.forest.dev/ai/package/roblox/eyycheev/jest-mock/files","readme":"# jest-mock\n\nUpstream: https://github.com/facebook/jest/tree/v27.4.7/packages/jest-mock\n\nThis package implements the various function and module mocking capabilities used by Jest. You can find its documentation in the [Jest documentation](https://roblox.github.io/jest-roblox-internal).\n\n---\n\n### :pencil2: Notes\n* As of right now, only a minimal set of functionality for jest-mock has been ported. The only externally facing functions that are supported are:\n\t* Creating an instance of the `ModuleMockerClass` via constructor (i.e. importing jest-mock and calling `.new()` on the import)\n\t* And then these functions are supported on an instance of the `ModuleMockerClass`:\n\t\t* `fn()` - create a function that can help in unit testing to confirm expectations on number of calls, returns, call arguments, etc. (currently this is mainly useful for the spyMatchers)\n\t    * `clearAllMocks()`\n\t    * `resetAllMocks()`\n\t    * `restoreAllMocks()`\n","readmeTruncated":false}