fix(ci): resolve inherited formatter and navigation effect diagnostics
This commit is contained in:
1 parent
a320e47c29
commit
a4266f297c
2 files changed
+15
-14
No files matched your search
+14
-14
@@ -1,26 +1,26 @@
|
|||||||
import { vi } from "vitest";
|
import { vi } from "vitest";
|
||||||
|
|
||||||
export const createMockDb = () => ({
|
export const createMockDb = () => ({
|
||||||
insert: vi.fn(),
|
insert: vi.fn(),
|
||||||
update: vi.fn(),
|
update: vi.fn(),
|
||||||
delete: vi.fn(),
|
delete: vi.fn(),
|
||||||
select: vi.fn(),
|
select: vi.fn(),
|
||||||
});
|
});
|
||||||
|
|
||||||
export const createMockAuth = () => ({
|
export const createMockAuth = () => ({
|
||||||
auth: vi.fn(),
|
auth: vi.fn(),
|
||||||
handlers: {},
|
handlers: {},
|
||||||
signOut: vi.fn(),
|
signOut: vi.fn(),
|
||||||
});
|
});
|
||||||
|
|
||||||
export const createMockRcon = () => ({
|
export const createMockRcon = () => ({
|
||||||
disconnectUser: vi.fn(),
|
disconnectUser: vi.fn(),
|
||||||
giveBadge: vi.fn(),
|
giveBadge: vi.fn(),
|
||||||
removeBadge: vi.fn(),
|
removeBadge: vi.fn(),
|
||||||
alertUser: vi.fn(),
|
alertUser: vi.fn(),
|
||||||
muteUser: vi.fn(),
|
muteUser: vi.fn(),
|
||||||
unmuteUser: vi.fn(),
|
unmuteUser: vi.fn(),
|
||||||
giveCredits: vi.fn(),
|
giveCredits: vi.fn(),
|
||||||
});
|
});
|
||||||
|
|
||||||
export const createMockLogStaffActivity = () => vi.fn();
|
export const createMockLogStaffActivity = () => vi.fn();
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ export function GlobalProgressBar() {
|
|||||||
const [isLoading, setIsLoading] = useState(false);
|
const [isLoading, setIsLoading] = useState(false);
|
||||||
const isPresent = useIsPresent();
|
const isPresent = useIsPresent();
|
||||||
|
|
||||||
|
// biome-ignore lint/correctness/useExhaustiveDependencies: Route changes intentionally restart the indicator timer.
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
setIsLoading(true);
|
setIsLoading(true);
|
||||||
const timer = setTimeout(() => {
|
const timer = setTimeout(() => {
|
||||||
|
|||||||
Reference in new issue
Block a user