diff options
| author | David Sherret <dsherret@users.noreply.github.com> | 2022-03-15 21:24:07 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-15 21:24:07 -0400 |
| commit | 748aff1e946a057820f1cb219344baf44a870fc1 (patch) | |
| tree | cefe80350fda6c4dacf04fdb859d86c4febf9836 /cli/tests | |
| parent | a7bef54d3f5517e8fd7508d47b6f56616e858695 (diff) | |
feat(task): add unstable warning to `deno task` (#13966)
Diffstat (limited to 'cli/tests')
| -rw-r--r-- | cli/tests/integration/task_tests.rs | 2 | ||||
| -rw-r--r-- | cli/tests/testdata/task/task_exit_code_5.out | 3 | ||||
| -rw-r--r-- | cli/tests/testdata/task/task_non_existent.out | 1 |
3 files changed, 4 insertions, 2 deletions
diff --git a/cli/tests/integration/task_tests.rs b/cli/tests/integration/task_tests.rs index 5ef5eaab2..82a101169 100644 --- a/cli/tests/integration/task_tests.rs +++ b/cli/tests/integration/task_tests.rs @@ -25,7 +25,7 @@ itest!(task_boolean_logic { envs: vec![("NO_COLOR".to_string(), "1".to_string())], }); -itest!(task_exit_code_1 { +itest!(task_exit_code_5 { args: "task --config task/deno.json exit_code_5", output: "task/task_exit_code_5.out", envs: vec![("NO_COLOR".to_string(), "1".to_string())], diff --git a/cli/tests/testdata/task/task_exit_code_5.out b/cli/tests/testdata/task/task_exit_code_5.out index fb5626d5b..6b53b1d38 100644 --- a/cli/tests/testdata/task/task_exit_code_5.out +++ b/cli/tests/testdata/task/task_exit_code_5.out @@ -1,2 +1,3 @@ -Task exit_code_5 echo $(echo 10 ; exit 2) && exit 5 +Warning deno task is unstable and may drastically change in the future +Task exit_code_5 echo $(echo 10 ; exit 2) && exit 5 10 diff --git a/cli/tests/testdata/task/task_non_existent.out b/cli/tests/testdata/task/task_non_existent.out index 916a85706..10e1acd63 100644 --- a/cli/tests/testdata/task/task_non_existent.out +++ b/cli/tests/testdata/task/task_non_existent.out @@ -1,3 +1,4 @@ +Warning deno task is unstable and may drastically change in the future Task not found: non_existent Available tasks: - boolean_logic |
