Refactor/reacrhitecture to fsd+ #49

Merged
ilia merged 70 commits from refactor/reacrhitecture-to-fsd+ into main 2026-06-03 09:55:47 +00:00
2 changed files with 7 additions and 10 deletions
Showing only changes of commit 5eb458eabb - Show all commits
@@ -26,7 +26,7 @@ import {
import {
type TypographySettingsStore,
getTypographySettingsStore,
} from '$features/AdjustTypography/model';
} from '$features/AdjustTypography';
import { createPersistentStore } from '$shared/lib';
import { untrack } from 'svelte';
import { getPretextFontString } from '../../lib';
@@ -84,6 +84,12 @@ vi.mock('$entities/Font/model', async importOriginal => {
};
});
const mockTypography = vi.hoisted(() => ({
weight: 400,
renderedSize: 48,
reset: vi.fn(),
}));
vi.mock('$features/AdjustTypography', () => ({
DEFAULT_TYPOGRAPHY_CONTROLS_DATA: [],
createTypographyControlManager: vi.fn(() => ({
@@ -91,15 +97,6 @@ vi.mock('$features/AdjustTypography', () => ({
renderedSize: 48,
reset: vi.fn(),
})),
}));
const mockTypography = vi.hoisted(() => ({
weight: 400,
renderedSize: 48,
reset: vi.fn(),
}));
vi.mock('$features/AdjustTypography/model', () => ({
getTypographySettingsStore: () => mockTypography,
}));