mirror of
https://github.com/onyx-dot-app/onyx.git
synced 2026-10-19 01:50:51 -05:00
12 lines
343 B
TypeScript
12 lines
343 B
TypeScript
import { beforeEach, jest } from "@jest/globals";
|
|
|
|
// requireMock reaches the manual mock's test-only reset helper, bypassing the real module's types.
|
|
const secureStoreMock = jest.requireMock("expo-secure-store") as {
|
|
__resetSecureStore: () => void;
|
|
};
|
|
|
|
beforeEach(() => {
|
|
secureStoreMock.__resetSecureStore();
|
|
jest.clearAllMocks();
|
|
});
|