


























@@ -135,8 +135,8 @@ describe("bundled channel entry shape guards", () => {
135135"./bundled.js?scope=missing-bundled-discovery",
136136);
137137138-expect(bundled.listBundledChannelPlugins()).toEqual([]);
139-expect(bundled.listBundledChannelSetupPlugins()).toEqual([]);
138+expect(bundled.listBundledChannelPlugins()).toStrictEqual([]);
139+expect(bundled.listBundledChannelSetupPlugins()).toStrictEqual([]);
140140});
141141142142it("loads real bundled channel entry contracts from the source tree", async () => {
@@ -547,7 +547,7 @@ describe("bundled channel entry shape guards", () => {
547547bundled.listBundledChannelLegacyStateMigrationDetectors({
548548config: { channels: { alpha: { enabled: false } } },
549549}),
550-).toEqual([]);
550+).toStrictEqual([]);
551551expect(testGlobal.__bundledSetupOnlySetupLoaded).toBeUndefined();
552552553553const detectors = bundled.listBundledChannelLegacyStateMigrationDetectors();
@@ -721,7 +721,7 @@ describe("bundled channel entry shape guards", () => {
721721source.includes('from "openclaw/plugin-sdk/channel-core"'),
722722);
723723724-expect(offenders).toEqual([]);
724+expect(offenders).toStrictEqual([]);
725725});
726726727727it("keeps setup-entry legacy feature hints mirrored in package metadata", () => {
@@ -748,15 +748,15 @@ describe("bundled channel entry shape guards", () => {
748748}
749749}
750750751-expect(offenders).toEqual([]);
751+expect(offenders).toStrictEqual([]);
752752});
753753754754it("keeps bundled channel entrypoints free of static src imports", () => {
755755const offenders = collectBundledChannelEntrypointOffenders(bundledPluginRoots, (source) =>
756756/^(?:import|export)\s.+["']\.\/src\//mu.test(source),
757757);
758758759-expect(offenders).toEqual([]);
759+expect(offenders).toStrictEqual([]);
760760});
761761762762it("keeps channel implementations off the broad core SDK surface", () => {
@@ -778,7 +778,7 @@ describe("bundled channel entry shape guards", () => {
778778}
779779}
780780781-expect(offenders).toEqual([]);
781+expect(offenders).toStrictEqual([]);
782782});
783783784784it("keeps plugin-sdk channel-core free of chat metadata bootstrap imports", () => {
@@ -797,7 +797,7 @@ describe("bundled channel entry shape guards", () => {
797797fs.readFileSync(path.resolve(filePath), "utf8").includes("openclaw/plugin-sdk/core"),
798798);
799799800-expect(offenders).toEqual([]);
800+expect(offenders).toStrictEqual([]);
801801});
802802803803it("keeps runtime helper surfaces off bootstrap-registry", () => {
@@ -810,7 +810,7 @@ describe("bundled channel entry shape guards", () => {
810810fs.readFileSync(path.resolve(filePath), "utf8").includes("bootstrap-registry.js"),
811811);
812812813-expect(offenders).toEqual([]);
813+expect(offenders).toStrictEqual([]);
814814});
815815816816it("keeps extension-shared off the broad runtime barrel", () => {
@@ -832,7 +832,7 @@ describe("bundled channel entry shape guards", () => {
832832.includes('from "openclaw/plugin-sdk/runtime"'),
833833);
834834835-expect(offenders).toEqual([]);
835+expect(offenders).toStrictEqual([]);
836836});
837837838838it("breaks reentrant bundled channel discovery cycles with an empty fallback", async () => {
@@ -906,7 +906,7 @@ module.exports = {
906906).__openclawBundledChannelReenter = () => {
907907if (!reentered) {
908908reentered = true;
909-expect(bundled.listBundledChannelPlugins()).toEqual([]);
909+expect(bundled.listBundledChannelPlugins()).toStrictEqual([]);
910910}
911911};
912912@@ -943,6 +943,6 @@ module.exports = {
943943}
944944}
945945946-expect(offenders).toEqual([]);
946+expect(offenders).toStrictEqual([]);
947947});
948948});
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。