Created
April 25, 2024 00:24
-
-
Save martinusso/88d8d48c91d381e65225fab867d020d2 to your computer and use it in GitHub Desktop.
tests.ts
This file contains 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('statsig-node', () => ({ | |
default: { | |
initialize: jest.fn(), | |
checkGate: jest.fn(), | |
}, | |
})); | |
// ... | |
Statsig.checkGate.mockResolvedValue(true); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment