mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
test(settings): pin update distribution in settings tests
This commit is contained in:
@@ -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>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user