summaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
Diffstat (limited to 'cli')
-rw-r--r--cli/Cargo.toml2
-rw-r--r--cli/tests/integration/task_tests.rs8
-rw-r--r--cli/tests/testdata/task/deno.json3
-rw-r--r--cli/tests/testdata/task/task_no_args.out2
-rw-r--r--cli/tests/testdata/task/task_non_existent.out2
5 files changed, 15 insertions, 2 deletions
diff --git a/cli/Cargo.toml b/cli/Cargo.toml
index b5b538594..3c15f823f 100644
--- a/cli/Cargo.toml
+++ b/cli/Cargo.toml
@@ -48,7 +48,7 @@ deno_emit = "0.11.0"
deno_graph = "0.38.0"
deno_lint = { version = "0.35.0", features = ["docs"] }
deno_runtime.workspace = true
-deno_task_shell = "0.7.2"
+deno_task_shell = "0.7.3"
napi_sym.workspace = true
atty.workspace = true
diff --git a/cli/tests/integration/task_tests.rs b/cli/tests/integration/task_tests.rs
index 8b8998b26..bc6ddee3b 100644
--- a/cli/tests/integration/task_tests.rs
+++ b/cli/tests/integration/task_tests.rs
@@ -50,6 +50,14 @@ itest!(task_non_existent {
exit_code: 1,
});
+#[test]
+fn task_emoji() {
+ // this bug only appears when using a pty/tty
+ let args = "task --config task/deno.json echo_emoji";
+ use test_util::PtyData::*;
+ test_util::test_pty2(args, vec![Output("Task echo_emoji echo šŸ”„\r\nšŸ”„")]);
+}
+
itest!(task_boolean_logic {
args: "task -q --config task/deno.json boolean_logic",
output: "task/task_boolean_logic.out",
diff --git a/cli/tests/testdata/task/deno.json b/cli/tests/testdata/task/deno.json
index 043f49b61..c57426d25 100644
--- a/cli/tests/testdata/task/deno.json
+++ b/cli/tests/testdata/task/deno.json
@@ -7,6 +7,7 @@
"piped": "echo 12345 | (deno eval 'const b = new Uint8Array(1);Deno.stdin.readSync(b);console.log(b)' && deno eval 'const b = new Uint8Array(1);Deno.stdin.readSync(b);console.log(b)')",
"exit_code_5": "echo $(echo 10 ; exit 2) && exit 5",
"echo_cwd": "echo $(pwd)",
- "echo_init_cwd": "echo $INIT_CWD"
+ "echo_init_cwd": "echo $INIT_CWD",
+ "echo_emoji": "echo šŸ”„"
}
}
diff --git a/cli/tests/testdata/task/task_no_args.out b/cli/tests/testdata/task/task_no_args.out
index 2001f269d..e41b3edd5 100644
--- a/cli/tests/testdata/task/task_no_args.out
+++ b/cli/tests/testdata/task/task_no_args.out
@@ -7,6 +7,8 @@ Available tasks:
echo 1
- echo_cwd
echo $(pwd)
+- echo_emoji
+ echo šŸ”„
- echo_init_cwd
echo $INIT_CWD
- exit_code_5
diff --git a/cli/tests/testdata/task/task_non_existent.out b/cli/tests/testdata/task/task_non_existent.out
index 035a43fd8..0e70f24d9 100644
--- a/cli/tests/testdata/task/task_non_existent.out
+++ b/cli/tests/testdata/task/task_non_existent.out
@@ -8,6 +8,8 @@ Available tasks:
echo 1
- echo_cwd
echo $(pwd)
+- echo_emoji
+ echo šŸ”„
- echo_init_cwd
echo $INIT_CWD
- exit_code_5