refactor(editor): rename presets to integration test (#10340)

This commit is contained in:
Saul-Mirone committed 2025-02-21 06:26:03 +00:00
1 parent f79324b6a1
commit f3218ab3bc
116 files changed
+156 -210

No files matched your search

-19
View File
@@ -4,25 +4,6 @@ vi.mock('lottie-web', () => ({
default: {},
}));
vi.mock('@blocksuite/affine/presets', () => ({
AffineEditorContainer: vi.fn(),
BiDirectionalLinkPanel: vi.fn(),
DocMetaTags: vi.fn(),
DocTitle: vi.fn(),
EdgelessEditor: vi.fn(),
PageEditor: vi.fn(),
AIChatBlockSchema: {
version: 1,
model: {
version: 1,
flavour: 'affine:embed-ai-chat',
role: 'content',
children: [],
},
},
AIChatBlockSpec: {},
}));
if (typeof window !== 'undefined' && HTMLCanvasElement) {
// @ts-expect-error allow vitest global mock
HTMLCanvasElement.prototype.getContext = () => {