From 3c3076a84ce84f7f9b5db5f476db8ee878eb603b Mon Sep 17 00:00:00 2001 From: Marvin Hagemeister Date: Wed, 29 May 2024 22:16:35 +0200 Subject: fix(task): always use `npm` for `npm run` with flags (#24028) --- tests/specs/task/npm_run/__test__.jsonc | 4 ++++ tests/specs/task/npm_run/deno.jsonc | 3 ++- tests/specs/task/npm_run/task_npm_run_args.out | 5 +++++ 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 tests/specs/task/npm_run/task_npm_run_args.out (limited to 'tests/specs') diff --git a/tests/specs/task/npm_run/__test__.jsonc b/tests/specs/task/npm_run/__test__.jsonc index b6cb249b8..7f3ce2885 100644 --- a/tests/specs/task/npm_run/__test__.jsonc +++ b/tests/specs/task/npm_run/__test__.jsonc @@ -12,6 +12,10 @@ "npm_run": { "args": "task npm_run", "output": "task_npm_run.out" + }, + "npm_run_args": { + "args": "task npm_run_args", + "output": "task_npm_run_args.out" } } } diff --git a/tests/specs/task/npm_run/deno.jsonc b/tests/specs/task/npm_run/deno.jsonc index bd6dde873..e923b063c 100644 --- a/tests/specs/task/npm_run/deno.jsonc +++ b/tests/specs/task/npm_run/deno.jsonc @@ -6,6 +6,7 @@ // currently this will execute using the actual `npm run` because we // haven't implemented the flags for `npm run` yet "test_using_npm": "npm run non_existent -- --ignore-scripts", - "npm_run": "npm run" + "npm_run": "npm run", + "npm_run_args": "npm run -d echo" } } diff --git a/tests/specs/task/npm_run/task_npm_run_args.out b/tests/specs/task/npm_run/task_npm_run_args.out new file mode 100644 index 000000000..8040ba4f6 --- /dev/null +++ b/tests/specs/task/npm_run/task_npm_run_args.out @@ -0,0 +1,5 @@ +Task npm_run_args npm run -d echo +npm info using[WILDCARD] + +> echo +[WILDCARD] -- cgit v1.2.3