fix(test): type drizzle mock callbacks for tsc
Co-authored-by: Cursor <[email protected]>
This commit is contained in:
1 parent
096f55b394
commit
22234fe102
2 files changed
+3
-2
No files matched your search
@@ -10,7 +10,7 @@ const { selectLimit, insertOnDup, mockSendMail, mockRedirect } = vi.hoisted(
|
||||
);
|
||||
|
||||
vi.mock("next/navigation", () => ({
|
||||
redirect: (...args) => {
|
||||
redirect: (...args: unknown[]) => {
|
||||
mockRedirect(...args);
|
||||
throw new Error("redirect");
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user