refactor(*): 平台架构 - 拆分后端领域模块与画布前端组件并补充测试

This commit is contained in:
ddcat666
2026-09-30 10:01:39 +08:00
parent e0a2697c60
commit 7f5d87ef1a
186 changed files with 33727 additions and 29905 deletions

View File

@@ -1,4 +1,5 @@
import { expect, test } from "bun:test";
import { moduleGroupSource } from "./helpers/module-group-source";
test("滚动条样式按复用边界拆分,并保持全局入口可用", async () => {
const [application, globals, shared, creation, creationWorkspace, editor, editorShell] = await Promise.all([
@@ -6,7 +7,7 @@ test("滚动条样式按复用边界拆分,并保持全局入口可用", async
Bun.file(new URL("../src/styles/globals.css", import.meta.url)).text(),
Bun.file(new URL("../src/styles/shared/scrollbars.css", import.meta.url)).text(),
Bun.file(new URL("../src/pages/create/creation-scrollbars.css", import.meta.url)).text(),
Bun.file(new URL("../src/pages/create/creation-workspace.tsx", import.meta.url)).text(),
Promise.resolve(moduleGroupSource("pages/create/creation-workspace.tsx")),
Bun.file(new URL("../src/lib/plugins/builtin/editor/editor-shell.css", import.meta.url)).text(),
Bun.file(new URL("../src/lib/plugins/builtin/editor/editor-shell.tsx", import.meta.url)).text(),
]);