test(settings): pin update distribution in settings tests

This commit is contained in:
Tommaso Casaburi
2026-04-30 22:11:44 +07:00
parent 807a68805c
commit cfd617af99
@@ -8,6 +8,10 @@ import useFeedViewSettingsStore from '../../../../stores/use-feed-view-settings-
import { INTERFACE_LANGUAGE_STORAGE_KEY } from '../../../../lib/constants';
import useAppUpdateStore from '../../../../stores/use-app-update-store';
vi.hoisted(() => {
vi.stubEnv('VITE_APP_DISTRIBUTION', 'github');
});
(globalThis as { IS_REACT_ACT_ENVIRONMENT?: boolean }).IS_REACT_ACT_ENVIRONMENT = true;
const act = (React as { act?: (cb: () => void | Promise<void>) => void | Promise<void> }).act as (cb: () => void | Promise<void>) => void | Promise<void>;