ci 오류 수정
This commit is contained in:
@@ -3,6 +3,8 @@ import { render, screen, cleanup } from "@testing-library/react";
|
||||
import type { Block, ProjectConfig } from "@/features/editor/state/editorStore";
|
||||
import EditorPage from "@/app/editor/page";
|
||||
import { createHeroTemplateBlocks } from "@/app/editor/templates/heroTemplate";
|
||||
import { getEditorTemplatesMessages } from "@/features/i18n/messages/editorTemplates";
|
||||
import { DEFAULT_LOCALE } from "@/features/i18n/locale";
|
||||
|
||||
let mockState: any;
|
||||
|
||||
@@ -191,7 +193,12 @@ describe("EditorPage - 섹션 레이아웃 속성", () => {
|
||||
return () => `hero_${++i}`;
|
||||
})();
|
||||
|
||||
const { blocks } = createHeroTemplateBlocks({ sectionId, createId });
|
||||
const tpl = getEditorTemplatesMessages(DEFAULT_LOCALE);
|
||||
const { blocks } = createHeroTemplateBlocks({
|
||||
sectionId,
|
||||
createId,
|
||||
messages: tpl.hero,
|
||||
});
|
||||
|
||||
mockState.blocks = blocks as Block[];
|
||||
mockState.selectedBlockId = sectionId;
|
||||
|
||||
Reference in New Issue
Block a user