Forest Logo
search
package_2

jest-mock

By @roblox

Roblox

Mirrored from Wally

jest-mock

Upstream: https://github.com/facebook/jest/tree/v27.4.7/packages/jest-mock

Function and module mocking for Jest Roblox. Provides ModuleMocker which creates mock functions (fn), spies on object methods and Instance methods (spyOn), and manages mock lifecycle (clearAllMocks, resetAllMocks, restoreAllMocks). Also supports mocking globals via jest-mock-genv and data model instances via jest-mock-rbx.

Package Details

Install command (Click to copy)


Version

3.21.0

License

MIT

check_circle

Safe for commercial use

infoThe package archive does not include its license text; the license is declared in its manifest metadata.

Automated license review — not legal advice.