Created
September 11, 2024 18:05
-
-
Save night-fury-rider/28abd6e959fc2cf56f63745373321e45 to your computer and use it in GitHub Desktop.
Jest - Partially Mocking Own Methods 2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jest.mock(“$dashboard/Contact service", ()=> ({ | |
_esModule: true, | |
default: ()=> ({ | |
getDashboardData: jest.fn() | |
}) | |
})); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment