diff options
Diffstat (limited to 'cli/tests/testdata/task/both')
| -rw-r--r-- | cli/tests/testdata/task/both/deno.json | 6 | ||||
| -rw-r--r-- | cli/tests/testdata/task/both/deno_selected.out | 4 | ||||
| -rw-r--r-- | cli/tests/testdata/task/both/echo.out | 0 | ||||
| -rw-r--r-- | cli/tests/testdata/task/both/no_args.out | 7 | ||||
| -rw-r--r-- | cli/tests/testdata/task/both/package.json | 9 | ||||
| -rw-r--r-- | cli/tests/testdata/task/both/package_json_selected.out | 7 | ||||
| -rw-r--r-- | cli/tests/testdata/task/both/prefers_deno.out | 4 |
7 files changed, 37 insertions, 0 deletions
diff --git a/cli/tests/testdata/task/both/deno.json b/cli/tests/testdata/task/both/deno.json new file mode 100644 index 000000000..1038609a4 --- /dev/null +++ b/cli/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/cli/tests/testdata/task/both/deno_selected.out b/cli/tests/testdata/task/both/deno_selected.out new file mode 100644 index 000000000..f55a74f5b --- /dev/null +++ b/cli/tests/testdata/task/both/deno_selected.out @@ -0,0 +1,4 @@ +Download http://localhost:4545/npm/registry/@denotest/bin +Download http://localhost:4545/npm/registry/@denotest/bin/1.0.0.tgz +Task other deno eval 'console.log(2)' +2 diff --git a/cli/tests/testdata/task/both/echo.out b/cli/tests/testdata/task/both/echo.out new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/cli/tests/testdata/task/both/echo.out diff --git a/cli/tests/testdata/task/both/no_args.out b/cli/tests/testdata/task/both/no_args.out new file mode 100644 index 000000000..fce690b70 --- /dev/null +++ b/cli/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/cli/tests/testdata/task/both/package.json b/cli/tests/testdata/task/both/package.json new file mode 100644 index 000000000..708ccc6b1 --- /dev/null +++ b/cli/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/cli/tests/testdata/task/both/package_json_selected.out b/cli/tests/testdata/task/both/package_json_selected.out new file mode 100644 index 000000000..76b3a9227 --- /dev/null +++ b/cli/tests/testdata/task/both/package_json_selected.out @@ -0,0 +1,7 @@ +Download http://localhost:4545/npm/registry/@denotest/bin +Download http://localhost:4545/npm/registry/@denotest/bin/1.0.0.tgz +Task bin cli-esm testing this out "asdf" +testing +this +out +asdf diff --git a/cli/tests/testdata/task/both/prefers_deno.out b/cli/tests/testdata/task/both/prefers_deno.out new file mode 100644 index 000000000..cd6798e6d --- /dev/null +++ b/cli/tests/testdata/task/both/prefers_deno.out @@ -0,0 +1,4 @@ +Download http://localhost:4545/npm/registry/@denotest/bin +Download http://localhost:4545/npm/registry/@denotest/bin/1.0.0.tgz +Task output deno eval 'console.log(1)' "some" "text" +1 |
