ensure pinned plugin versions and do not run package scripts on install (#20248)
This commit is contained in:
parent
1fcb920eb4
commit
2e78fdec43
5 changed files with 93 additions and 5 deletions
|
|
@ -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()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue