From 968e66d5751657788e56da05ab6f5f9d5cbaa188 Mon Sep 17 00:00:00 2001 From: Aniketiitk21 Date: Sun, 24 May 2026 15:21:27 +0530 Subject: [PATCH] test: cover Windows -- arg forwarding in shims --- test/bin/windows-shims.js | 1 + 1 file changed, 1 insertion(+) diff --git a/test/bin/windows-shims.js b/test/bin/windows-shims.js index a97caf7a7c813..735ee2a9832d7 100644 --- a/test/bin/windows-shims.js +++ b/test/bin/windows-shims.js @@ -279,6 +279,7 @@ t.test('run shims', t => { { bin: 'npx', params: ['--version'], expected: version }, { bin: 'npm', params: ['test'], expected: '' }, { bin: 'npm', params: [`test -- hello -p1 world -p2 "hello world" --q1=hello world --q2="hello world"`], expected: `hello\n-p1\nworld\n-p2\nhello world\n--q1=hello\nworld\n--q2=hello world` }, + { bin: 'npm', params: ['test -- --foo=bar'], expected: '--foo=bar' }, { bin: 'npm', params: ['test -- a=1,b=2,c=3'], expected: `a=1,b=2,c=3` }, { bin: 'npx', params: ['. -- a=1,b=2,c=3'], expected: `a=1,b=2,c=3` }, ]