
























@@ -228,15 +228,15 @@ describe("plugin contract boundary invariants", () => {
228228}
229229return readRepoSource(file).includes("contracts/inventory/bundled-capability-metadata");
230230});
231-expect(offenders).toEqual([]);
231+expect(offenders).toStrictEqual([]);
232232});
233233234234it("keeps the bundled contract inventory out of non-test runtime code", () => {
235235const files = listTsFiles("src", { excludeTests: true });
236236const offenders = files.filter((file) => {
237237return readRepoSource(file).includes("contracts/inventory/bundled-capability-metadata");
238238});
239-expect(offenders).toEqual([]);
239+expect(offenders).toStrictEqual([]);
240240});
241241242242it("keeps core tests off bundled extension deep imports", () => {
@@ -246,7 +246,7 @@ describe("plugin contract boundary invariants", () => {
246246(specifier) => !isAllowedBundledExtensionImport(specifier),
247247);
248248});
249-expect(offenders).toEqual([]);
249+expect(offenders).toStrictEqual([]);
250250});
251251252252it("keeps plugin contract tests off bundled path helpers unless the test is explicitly about paths", () => {
@@ -263,15 +263,15 @@ describe("plugin contract boundary invariants", () => {
263263)
264264);
265265});
266-expect(offenders).toEqual([]);
266+expect(offenders).toStrictEqual([]);
267267});
268268269269it("keeps channel production code off bundled-plugin-metadata helpers", () => {
270270const files = listTsFiles("src/channels", { excludeTests: true });
271271const offenders = files.filter((file) => {
272272return readRepoSource(file).includes("plugins/bundled-plugin-metadata");
273273});
274-expect(offenders).toEqual([]);
274+expect(offenders).toStrictEqual([]);
275275});
276276277277it("keeps contract loaders off hand-built bundled extension paths", () => {
@@ -283,13 +283,13 @@ describe("plugin contract boundary invariants", () => {
283283const source = readRepoSource(file);
284284return /extensions\/\$\{|\.\.\/\.\.\/\.\.\/\.\.\/extensions\//u.test(source);
285285});
286-expect(offenders).toEqual([]);
286+expect(offenders).toStrictEqual([]);
287287});
288288289289it("keeps bundled plugin production code off legacy before_agent_start hooks", () => {
290290const files = listTsFiles("extensions", { excludeTests: true });
291291const offenders = files.filter((file) => readRepoSource(file).includes("before_agent_start"));
292-expect(offenders).toEqual([]);
292+expect(offenders).toStrictEqual([]);
293293});
294294295295it("keeps bundled plugin typed hook registrations on an explicit allowlist", () => {
@@ -312,7 +312,7 @@ describe("plugin contract boundary invariants", () => {
312312it("keeps bundled plugin production code off raw registerHook calls", () => {
313313const files = listTsFiles("extensions", { excludeTests: true });
314314const offenders = files.filter((file) => /\bregisterHook\(/u.test(readRepoSource(file)));
315-expect(offenders).toEqual([]);
315+expect(offenders).toStrictEqual([]);
316316});
317317318318it("keeps long-lived bundled hook handlers on live runtime config lookups", () => {
@@ -324,7 +324,7 @@ describe("plugin contract boundary invariants", () => {
324324.map((snippet) => `${file}: ${snippet}`);
325325},
326326);
327-expect(missingGuards).toEqual([]);
327+expect(missingGuards).toStrictEqual([]);
328328});
329329330330it("keeps live provider config surfaces on runtime config lookups", () => {
@@ -336,7 +336,7 @@ describe("plugin contract boundary invariants", () => {
336336.map((snippet) => `${file}: ${snippet}`);
337337},
338338);
339-expect(missingGuards).toEqual([]);
339+expect(missingGuards).toStrictEqual([]);
340340});
341341342342it("keeps long-lived bundled hook handlers off startup-only registration gates", () => {
@@ -348,6 +348,6 @@ describe("plugin contract boundary invariants", () => {
348348.map((snippet) => `${file}: ${snippet}`);
349349},
350350);
351-expect(offenders).toEqual([]);
351+expect(offenders).toStrictEqual([]);
352352});
353353});
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。