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
commit 2e78fdec43
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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()
}