

























@@ -7,7 +7,6 @@ import {
77clearBundledRuntimeDependencyNodePaths,
88ensureBundledPluginRuntimeDeps,
99} from "../plugins/bundled-runtime-deps.js";
10-import { shouldExpectNativeJitiForJavaScriptTestRuntime } from "../test-utils/jiti-runtime.js";
1110import {
1211listImportedBundledPluginFacadeIds,
1312loadBundledPluginPublicSurfaceModule,
@@ -377,7 +376,7 @@ describe("plugin-sdk facade loader", () => {
377376expect(listImportedFacadeRuntimeIds()).toEqual([fixture.pluginId]);
378377});
379378380-it("uses the runtime-supported Jiti boundary for Windows dist facade loads", () => {
379+it("uses the runtime-supported native boundary for Windows dist facade loads", () => {
381380const fixture = createBundledPluginFixture({
382381prefix: "openclaw-facade-loader-windows-",
383382marker: "windows-dist-ok",
@@ -388,7 +387,7 @@ describe("plugin-sdk facade loader", () => {
388387setFacadeLoaderJitiFactoryForTest(((...args) => {
389388createJitiCalls.push(args);
390389return vi.fn(() => ({
391-marker: "windows-dist-ok",
390+marker: "jiti-fallback",
392391})) as unknown as ReturnType<FacadeLoaderJitiFactory>;
393392}) as FacadeLoaderJitiFactory);
394393const platformSpy = vi.spyOn(process, "platform", "get").mockReturnValue("win32");
@@ -401,13 +400,7 @@ describe("plugin-sdk facade loader", () => {
401400artifactBasename: "api.js",
402401}).marker,
403402).toBe("windows-dist-ok");
404-expect(createJitiCalls).toHaveLength(1);
405-expect(createJitiCalls[0]?.[0]).toEqual(expect.any(String));
406-expect(createJitiCalls[0]?.[1]).toEqual(
407-expect.objectContaining({
408-tryNative: shouldExpectNativeJitiForJavaScriptTestRuntime(),
409-}),
410-);
403+expect(createJitiCalls).toHaveLength(0);
411404} finally {
412405restoreVersions();
413406platformSpy.mockRestore();
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。