From 4ec301b077a4d2db747247b88823aa8068177caf Mon Sep 17 00:00:00 2001 From: Hiroshi Ogawa Date: Sat, 12 Oct 2024 21:14:08 +0900 Subject: [PATCH] test: use list cli args from `test.each` (#6694) --- test/cli/test/list.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/cli/test/list.test.ts b/test/cli/test/list.test.ts index afcaeaaaf..ad3c8a032 100644 --- a/test/cli/test/list.test.ts +++ b/test/cli/test/list.test.ts @@ -17,8 +17,8 @@ test.each([ ['basic'], ['json', '--json'], ['json with a file', '--json=./list.json'], -])('%s output shows error', async () => { - const { stderr, stdout, exitCode } = await runVitestCli('list', '-r=./fixtures/list', '-c=fail.config.ts') +])('%s output shows error', async (_, ...args) => { + const { stderr, stdout, exitCode } = await runVitestCli('list', '-r=./fixtures/list', '-c=fail.config.ts', ...args) expect(stdout).toBe('') expect(stderr).toMatchSnapshot() expect(exitCode).toBe(1) -- 2.51.2