summaryrefslogtreecommitdiff
path: root/cli/tests/integration/task_tests.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-03-30 17:47:53 -0400
committerGitHub <noreply@github.com>2023-03-30 17:47:53 -0400
commit772201449713fbefad6c42b9ce545a5bb2d7499b (patch)
tree3a0e0448ca4116cd5ed4c1ba7dafb331ad6215e3 /cli/tests/integration/task_tests.rs
parent02e01b171f29f4f6c23d738b0756b7d9b7eaa020 (diff)
fix(lsp): include all diagnosable documents on initialize (#17979)
Closes https://github.com/denoland/vscode_deno/issues/797 Closes https://github.com/denoland/deno/issues/11190 Closes https://github.com/denoland/vscode_deno/issues/811 Closes https://github.com/denoland/vscode_deno/issues/761 Closes https://github.com/denoland/vscode_deno/issues/585 Closes https://github.com/denoland/vscode_deno/issues/561 Closes https://github.com/denoland/vscode_deno/issues/410
Diffstat (limited to 'cli/tests/integration/task_tests.rs')
-rw-r--r--cli/tests/integration/task_tests.rs11
1 files changed, 6 insertions, 5 deletions
diff --git a/cli/tests/integration/task_tests.rs b/cli/tests/integration/task_tests.rs
index f090deff5..45b091b08 100644
--- a/cli/tests/integration/task_tests.rs
+++ b/cli/tests/integration/task_tests.rs
@@ -4,6 +4,7 @@
// These tests are intended to only test integration.
use test_util::env_vars_for_npm_tests;
+use test_util::TestContext;
itest!(task_no_args {
args: "task -q --config task/deno_json/deno.json",
@@ -53,12 +54,12 @@ itest!(task_non_existent {
#[test]
fn task_emoji() {
// this bug only appears when using a pty/tty
- test_util::with_pty(
- &["task", "--config", "task/deno_json/deno.json", "echo_emoji"],
- |mut console| {
+ TestContext::default()
+ .new_command()
+ .args_vec(["task", "--config", "task/deno_json/deno.json", "echo_emoji"])
+ .with_pty(|mut console| {
console.expect("Task echo_emoji echo šŸ”„\r\nšŸ”„");
- },
- );
+ });
}
itest!(task_boolean_logic {