Skip to content

Commit

Permalink
add missing deps for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nijoe1 committed Dec 16, 2024
1 parent d87aa45 commit aea04bc
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jest.mock("wagmi", () => ({
chainId: 1,
address: "0x0",
}),
createConfig: jest.fn(),
}));
jest.mock("@rainbow-me/rainbowkit", () => ({
ConnectButton: jest.fn(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jest.mock("wagmi", () => ({
useAccount: () => ({
chainId: 1,
}),
createConfig: jest.fn(),
}));
jest.mock("../../../features/api/payoutStrategy/payoutStrategy");

Expand All @@ -23,7 +24,6 @@ jest.mock("viem", () => ({
jest.mock("common", () => ({
...jest.requireActual("common"),
useAllo: jest.fn(),

}));

const alloBackend = new AlloV1({
Expand All @@ -37,7 +37,6 @@ const alloBackend = new AlloV1({
transactionSender: createMockTransactionSender(),
});


const testParams: ReclaimFundsParams = {
allo: alloBackend,
payoutStrategy: "0x0000000000000000000000000000000000000001",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jest.mock("wagmi", () => ({
useAccount: () => ({
chainId: 1,
}),
createConfig: jest.fn(),
}));
jest.mock("@rainbow-me/rainbowkit", () => ({
ConnectButton: jest.fn(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jest.mock("wagmi", () => ({
useAccount: () => ({
chainId: 1,
}),
createConfig: jest.fn(),
}));
jest.mock("@rainbow-me/rainbowkit", () => ({
ConnectButton: jest.fn(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jest.mock("wagmi", () => ({
useAccount: () => ({
chainId: 1,
}),
createConfig: jest.fn(),
}));
jest.mock("@rainbow-me/rainbowkit", () => ({
ConnectButton: jest.fn(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jest.mock("wagmi", () => ({
useAccount: () => ({
chainId: 1,
}),
createConfig: jest.fn(),
}));
jest.mock("@rainbow-me/rainbowkit", () => ({
ConnectButton: jest.fn(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jest.mock("wagmi", () => ({
useAccount: () => ({
chainId: 1,
}),
createConfig: jest.fn(),
}));
jest.mock("@rainbow-me/rainbowkit", () => ({
ConnectButton: jest.fn(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jest.mock("wagmi", () => ({
useAccount: () => ({
chainId: 1,
}),
createConfig: jest.fn(),
}));

jest.mock("@rainbow-me/rainbowkit", () => ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jest.mock("wagmi", () => ({
useAccount: () => ({
chainId: 1,
}),
createConfig: jest.fn(),
}));
jest.mock("@rainbow-me/rainbowkit", () => ({
ConnectButton: jest.fn(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jest.mock("wagmi", () => ({
useAccount: () => ({
chainId: 10,
}),
createConfig: jest.fn(),
}));
jest.mock("../../../constants", () => ({
...jest.requireActual("../../../constants"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jest.mock("wagmi", () => ({
],
}),
useProvider: () => ({}),
createConfig: jest.fn(),
}));
jest.mock("../../../constants", () => ({
...jest.requireActual("../../../constants"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jest.mock("wagmi", () => ({
useAccount: () => ({
chainId: 1,
}),
createConfig: jest.fn(),
}));

jest.mock("@rainbow-me/rainbowkit", () => ({
Expand Down

0 comments on commit aea04bc

Please sign in to comment.