diff options
Diffstat (limited to 'tests/testdata/task/both')
| -rw-r--r-- | tests/testdata/task/both/deno.json | 6 | ||||
| -rw-r--r-- | tests/testdata/task/both/deno_selected.out | 2 | ||||
| -rw-r--r-- | tests/testdata/task/both/echo.out | 0 | ||||
| -rw-r--r-- | tests/testdata/task/both/no_args.out | 7 | ||||
| -rw-r--r-- | tests/testdata/task/both/package.json | 9 | ||||
| -rw-r--r-- | tests/testdata/task/both/package_json_selected.out | 8 | ||||
| -rw-r--r-- | tests/testdata/task/both/prefers_deno.out | 2 |
7 files changed, 34 insertions, 0 deletions
diff --git a/tests/testdata/task/both/deno.json b/tests/testdata/task/both/deno.json new file mode 100644 index 000000000..1038609a4 --- /dev/null +++ b/tests/testdata/task/both/deno.json @@ -0,0 +1,6 @@ +{ + "tasks": { + "output": "deno eval 'console.log(1)'", + "other": "deno eval 'console.log(2)'" + } +} diff --git a/tests/testdata/task/both/deno_selected.out b/tests/testdata/task/both/deno_selected.out new file mode 100644 index 000000000..f5bbab26d --- /dev/null +++ b/tests/testdata/task/both/deno_selected.out @@ -0,0 +1,2 @@ +Task other deno eval 'console.log(2)' +2 diff --git a/tests/testdata/task/both/echo.out b/tests/testdata/task/both/echo.out new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/tests/testdata/task/both/echo.out diff --git a/tests/testdata/task/both/no_args.out b/tests/testdata/task/both/no_args.out new file mode 100644 index 000000000..fce690b70 --- /dev/null +++ b/tests/testdata/task/both/no_args.out @@ -0,0 +1,7 @@ +Available tasks: +- output + deno eval 'console.log(1)' +- other + deno eval 'console.log(2)' +- bin (package.json) + cli-esm testing this out diff --git a/tests/testdata/task/both/package.json b/tests/testdata/task/both/package.json new file mode 100644 index 000000000..708ccc6b1 --- /dev/null +++ b/tests/testdata/task/both/package.json @@ -0,0 +1,9 @@ +{ + "scripts": { + "bin": "cli-esm testing this out", + "output": "echo should never be called or shown" + }, + "dependencies": { + "other": "npm:@denotest/bin@1.0" + } +} diff --git a/tests/testdata/task/both/package_json_selected.out b/tests/testdata/task/both/package_json_selected.out new file mode 100644 index 000000000..3dd1ecafa --- /dev/null +++ b/tests/testdata/task/both/package_json_selected.out @@ -0,0 +1,8 @@ +Download http://localhost:4545/npm/registry/@denotest/bin +Download http://localhost:4545/npm/registry/@denotest/bin/1.0.0.tgz +Initialize @denotest/bin@1.0.0 +Task bin cli-esm testing this out "asdf" +testing +this +out +asdf diff --git a/tests/testdata/task/both/prefers_deno.out b/tests/testdata/task/both/prefers_deno.out new file mode 100644 index 000000000..391737272 --- /dev/null +++ b/tests/testdata/task/both/prefers_deno.out @@ -0,0 +1,2 @@ +Task output deno eval 'console.log(1)' "some" "text" +1 |
