test(auth): satisfy build-time test helper typing

This commit is contained in:
Dotta committed 2026-06-06 16:00:43 +00:00
1 parent 14becd49b0
commit 6ab7fa8e0c
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -44,7 +44,7 @@ vi.mock("@/context/CompanyContext", () => ({
(globalThis as any).IS_REACT_ACT_ENVIRONMENT = true;
async function act(callback: () => void | Promise<void>) {
let result: void | Promise<void>;
let result: void | Promise<void> = undefined;
flushSync(() => {
result = callback();
});
+1 -1
View File
@@ -62,7 +62,7 @@ vi.mock("@/context/CompanyContext", () => ({
(globalThis as any).IS_REACT_ACT_ENVIRONMENT = true;
async function act(callback: () => void | Promise<void>) {
let result: void | Promise<void>;
let result: void | Promise<void> = undefined;
flushSync(() => {
result = callback();
});