feat(scum-plugin): move feature page module
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { renderToStaticMarkup } from "react-dom/server";
|
||||
import { describe, expect, it } from "vitest";
|
||||
import hostSource from "./PluginPageHostPage.tsx?raw";
|
||||
|
||||
import type { GamePluginResponse } from "../api/types";
|
||||
import type { PageComponentProps } from "../contracts/page";
|
||||
@@ -89,4 +90,9 @@ describe("PluginPageHostPage", () => {
|
||||
expect(html).toContain("未绑定服务器");
|
||||
expect(html).toContain("正在校验并加载插件页面 bundle");
|
||||
});
|
||||
|
||||
it("remains a manifest-driven host without SCUM component imports or game branches", () => {
|
||||
expect(hostSource).toContain("loadPluginPageBundle");
|
||||
expect(hostSource).not.toMatch(/ScumFileConfigWorkbench|GamePlayerIntelligencePanel|GameGiftCatalogPanel|ScumMapTrajectoryPanel|game\.scum/);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user