Skip to content

Instantly share code, notes, and snippets.

@martinusso
Created April 25, 2024 00:24
Show Gist options
  • Save martinusso/88d8d48c91d381e65225fab867d020d2 to your computer and use it in GitHub Desktop.
Save martinusso/88d8d48c91d381e65225fab867d020d2 to your computer and use it in GitHub Desktop.
tests.ts
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