


































@@ -395,13 +395,13 @@ function sourceMentionsIdentifier(source: string, name: string): boolean {
395395function expectSourceMentions(subpath: string, names: readonly string[]) {
396396const source = readPluginSdkSource(subpath);
397397const missing = names.filter((name) => !sourceMentionsIdentifier(source, name));
398-expect(missing, `${subpath} missing exports`).toEqual([]);
398+expect(missing, `${subpath} missing exports`).toStrictEqual([]);
399399}
400400401401function expectSourceOmits(subpath: string, names: readonly string[]) {
402402const source = readPluginSdkSource(subpath);
403403const present = names.filter((name) => sourceMentionsIdentifier(source, name));
404-expect(present, `${subpath} leaked exports`).toEqual([]);
404+expect(present, `${subpath} leaked exports`).toStrictEqual([]);
405405}
406406407407function expectSourceContract(
@@ -411,8 +411,8 @@ function expectSourceContract(
411411const source = readPluginSdkSource(subpath);
412412const missing = (params.mentions ?? []).filter((name) => !sourceMentionsIdentifier(source, name));
413413const present = (params.omits ?? []).filter((name) => sourceMentionsIdentifier(source, name));
414-expect(missing, `${subpath} missing exports`).toEqual([]);
415-expect(present, `${subpath} leaked exports`).toEqual([]);
414+expect(missing, `${subpath} missing exports`).toStrictEqual([]);
415+expect(present, `${subpath} leaked exports`).toStrictEqual([]);
416416}
417417418418function expectSourceContains(subpath: string, snippet: string) {
@@ -471,7 +471,7 @@ describe("plugin-sdk subpath exports", () => {
471471it("keeps removed bundled-channel aliases out of the public sdk list", () => {
472472const removedChannelAliases = new Set(["signal", "slack", "telegram", "whatsapp"]);
473473const banned = pluginSdkSubpaths.filter((subpath) => removedChannelAliases.has(subpath));
474-expect(banned).toEqual([]);
474+expect(banned).toStrictEqual([]);
475475});
476476477477it("keeps generated bundled-channel facades out of the public sdk list", () => {
@@ -485,7 +485,7 @@ describe("plugin-sdk subpath exports", () => {
485485isGeneratedBundledFacadeSubpath(subpath),
486486),
487487);
488-expect(banned).toEqual([]);
488+expect(banned).toStrictEqual([]);
489489});
490490491491it("keeps browser compatibility helper subpaths as thin facades", () => {
@@ -781,7 +781,7 @@ describe("plugin-sdk subpath exports", () => {
781781)
782782.toSorted();
783783784-expect(violations).toEqual([]);
784+expect(violations).toStrictEqual([]);
785785});
786786787787it("keeps the deprecated channel-runtime shim unused in repo imports", () => {
@@ -799,7 +799,7 @@ describe("plugin-sdk subpath exports", () => {
799799"src/plugins/contracts/plugin-sdk-root-alias.test.ts",
800800],
801801});
802-expect(matches).toEqual([]);
802+expect(matches).toStrictEqual([]);
803803});
804804805805it("keeps deprecated comparable channel target helpers behind compatibility shims", () => {
@@ -820,7 +820,7 @@ describe("plugin-sdk subpath exports", () => {
820820"src/plugins/contracts/plugin-sdk-subpaths.test.ts",
821821],
822822});
823-expect(matches).toEqual([]);
823+expect(matches).toStrictEqual([]);
824824});
825825826826it("keeps deprecated channel route key aliases behind compatibility shims", () => {
@@ -839,7 +839,7 @@ describe("plugin-sdk subpath exports", () => {
839839"src/plugins/contracts/plugin-sdk-subpaths.test.ts",
840840],
841841});
842-expect(matches).toEqual([]);
842+expect(matches).toStrictEqual([]);
843843});
844844845845it("keeps removed channel-named runtime boundaries out of core imports", () => {
@@ -853,7 +853,7 @@ describe("plugin-sdk subpath exports", () => {
853853],
854854excludeFilesMatching: [/\.test\.ts$/u, /\.test-harness\.ts$/u],
855855});
856-expect(matches).toEqual([]);
856+expect(matches).toStrictEqual([]);
857857});
858858859859it("exports channel runtime helpers from the dedicated subpath", () => {
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。