test: assert npm spec warning suppression

This commit is contained in:
Shakker
2026-05-08 10:42:22 +01:00
parent a40ef6691e
commit 3dfe70b8f8

View File

@@ -1072,7 +1072,9 @@ describe("installPluginFromNpmSpec", () => {
return;
}
expect(result.pluginId).toBe(pluginId);
expect(warnings.some((warning) => warning.includes("installation blocked"))).toBe(false);
expect(warnings).not.toEqual(
expect.arrayContaining([expect.stringContaining("installation blocked")]),
);
expectNpmInstallIntoRoot({
calls: runCommandWithTimeoutMock.mock.calls,
npmRoot,