Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

Commit

Permalink
fix: re-mock ethers Contract to fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastiendan committed Jan 3, 2024
1 parent 74df325 commit 34bfc8d
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/execute/execute.processor.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,7 @@ describe('ExecuteProcessor', () => {
.spyOn<any, any>(ethers, 'Wallet')
.mockReturnValue(walletMock)

jest
.spyOn<any, any>(SubnetRegistrator__factory, 'connect')
.mockReturnValue(contractMock)
jest
.spyOn<any, any>(ToposCore__factory, 'connect')
.mockReturnValue(contractMock)
jest
.spyOn<any, any>(ToposMessaging__factory, 'connect')
.mockReturnValue(contractMock)
jest.spyOn<any, any>(ethers, 'Contract').mockReturnValue(contractMock)

await executeProcessor.execute(
validExecuteJob as unknown as Job<
Expand Down

0 comments on commit 34bfc8d

Please sign in to comment.