diff options
| author | HasanAlrimawi <141642411+HasanAlrimawi@users.noreply.github.com> | 2024-09-11 18:39:47 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-11 17:39:47 +0200 |
| commit | 1463a4ad5805b1b29f33b695ce19d4c42b671790 (patch) | |
| tree | d625cadfd283e41da78b65998ad10036619ba7bb /tests/specs/task/both_no_arg | |
| parent | c64aa50c0e4219ef623a6ec3b939ac10a4568563 (diff) | |
chore: deprecate task itests (#25558)
This PR is part of #22907
Diffstat (limited to 'tests/specs/task/both_no_arg')
| -rw-r--r-- | tests/specs/task/both_no_arg/__test__.jsonc | 8 | ||||
| -rw-r--r-- | tests/specs/task/both_no_arg/deno.json | 6 | ||||
| -rw-r--r-- | tests/specs/task/both_no_arg/no_args.out | 7 | ||||
| -rw-r--r-- | tests/specs/task/both_no_arg/package.json | 9 |
4 files changed, 30 insertions, 0 deletions
diff --git a/tests/specs/task/both_no_arg/__test__.jsonc b/tests/specs/task/both_no_arg/__test__.jsonc new file mode 100644 index 000000000..c80db130e --- /dev/null +++ b/tests/specs/task/both_no_arg/__test__.jsonc @@ -0,0 +1,8 @@ +{ + "args": "task --config deno.json", + "output": "no_args.out", + "envs": { + "NO_COLOR": "1" + }, + "exitCode": 1 +} diff --git a/tests/specs/task/both_no_arg/deno.json b/tests/specs/task/both_no_arg/deno.json new file mode 100644 index 000000000..1038609a4 --- /dev/null +++ b/tests/specs/task/both_no_arg/deno.json @@ -0,0 +1,6 @@ +{ + "tasks": { + "output": "deno eval 'console.log(1)'", + "other": "deno eval 'console.log(2)'" + } +} diff --git a/tests/specs/task/both_no_arg/no_args.out b/tests/specs/task/both_no_arg/no_args.out new file mode 100644 index 000000000..fce690b70 --- /dev/null +++ b/tests/specs/task/both_no_arg/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/specs/task/both_no_arg/package.json b/tests/specs/task/both_no_arg/package.json new file mode 100644 index 000000000..708ccc6b1 --- /dev/null +++ b/tests/specs/task/both_no_arg/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" + } +} |
