ensure pinned plugin versions and do not run package scripts on install (#20248)

This commit is contained in:
Sebastian
2026-03-31 16:59:43 +02:00
committed by GitHub
parent 1fcb920eb4
commit 2e78fdec43
5 changed files with 93 additions and 5 deletions

View File

@@ -266,8 +266,8 @@ describe("plugin.loader.shared", () => {
try {
await load(tmp.path)
expect(install.mock.calls).toContainEqual(["acme-plugin", "latest"])
expect(install.mock.calls).toContainEqual(["scope-plugin", "2.3.4"])
expect(install.mock.calls).toContainEqual(["acme-plugin", "latest", { ignoreScripts: true }])
expect(install.mock.calls).toContainEqual(["scope-plugin", "2.3.4", { ignoreScripts: true }])
} finally {
install.mockRestore()
}