From f3e5a67898de29f954d90d15f2f7079164957865 Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Wed, 4 Mar 2026 00:58:05 -0500 Subject: [PATCH] tests: assert plugin install omits peer deps --- src/test-utils/exec-assertions.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/test-utils/exec-assertions.ts b/src/test-utils/exec-assertions.ts index 50bf54f61e4..def16cdfa05 100644 --- a/src/test-utils/exec-assertions.ts +++ b/src/test-utils/exec-assertions.ts @@ -11,7 +11,14 @@ export function expectSingleNpmInstallIgnoreScriptsCall(params: { throw new Error("expected npm install call"); } const [argv, opts] = first; - expect(argv).toEqual(["npm", "install", "--omit=dev", "--silent", "--ignore-scripts"]); + expect(argv).toEqual([ + "npm", + "install", + "--omit=dev", + "--omit=peer", + "--silent", + "--ignore-scripts", + ]); expect(opts?.cwd).toBe(params.expectedCwd); }