mirror of
https://github.com/SableClient/Sable.git
synced 2026-11-20 09:01:17 -08:00
fix tests
This commit is contained in:
1 parent
33458114dc
commit
08930cdff2
1 file changed
+7
-3
@@ -28,9 +28,13 @@ vi.mock('$state/hooks/settings', () => ({
|
||||
useSetting: () => [true, vi.fn<() => void>()] as const,
|
||||
}));
|
||||
|
||||
vi.mock('$state/settings', () => ({
|
||||
settingsAtom: {},
|
||||
}));
|
||||
vi.mock('$state/settings', async (importOriginal) => {
|
||||
const actual = await importOriginal<typeof import('$state/settings')>();
|
||||
return {
|
||||
...actual,
|
||||
settingsAtom: {},
|
||||
};
|
||||
});
|
||||
|
||||
vi.mock('./useSettingsFocus', () => ({
|
||||
useSettingsFocus: () => {},
|
||||
|
||||
Reference in new issue
Block a user