mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-04 11:01:16 +01:00
test(auth): satisfy build-time test helper typing
This commit is contained in:
1 parent
14becd49b0
commit
6ab7fa8e0c
2 files changed
+2
-2
No files matched your search
@@ -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();
|
||||
});
|
||||
|
||||
@@ -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();
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user