• Creates a sandbox registry for the modules that are loaded inside the callback function. This is useful to isolate specific modules for every test so that local module state doesn't conflict between tests.

    Parameters

    • fn: () => void

    Returns typeof jest