Skip to content

Commit

Permalink
chore: fix mock on integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
andreabadesso committed Jun 6, 2024
1 parent 19b7a73 commit 6f557dc
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions packages/daemon/__tests__/integration/balances.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,14 @@ jest.mock('../../src/config', () => {
};
});

jest.mock('@wallet-service/common/src/utils/index.utils', () => ({
assertEnvVariablesExistence: jest.fn(),
}));
jest.mock('@wallet-service/common', () => {
const originalModule = jest.requireActual('@wallet-service/common');

return {
...originalModule,
assertEnvVariablesExistence: jest.fn(),
};
});

import getConfig from '../../src/config';

Expand Down

0 comments on commit 6f557dc

Please sign in to comment.