diff --git a/src/scores.test.ts b/src/scores.test.ts index e71302a1..9a48bff9 100644 --- a/src/scores.test.ts +++ b/src/scores.test.ts @@ -4,7 +4,12 @@ import { getCurrentBlockNum, sha256 } from './utils'; import snapshot from '@snapshot-labs/strategies'; jest.mock('./utils'); -jest.mock('./helpers/cache'); +jest.mock('./helpers/cache', () => { + return { + cachedScores: jest.fn(), + cachedVp: jest.fn() + }; +}); jest.mock('@snapshot-labs/strategies'); describe('scores function', () => {