diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2023-02-27 16:52:49 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-27 16:52:49 -0400 |
commit | 7c090b1b14e6b5000dbbed434525387c414ca62c (patch) | |
tree | 1645fbd8a8b1aee55f79cfe74d2bb7ecadcf5215 /cli/tests/integration/lint_tests.rs | |
parent | 6bbb4c3af60d568a34e1472a0721ddd8a3dab469 (diff) |
chore: test builders for integration tests (#17965)
Start of adding test builders to simplify integration tests.
I only updated a few test files. We can complete upgrading over time.
Diffstat (limited to 'cli/tests/integration/lint_tests.rs')
-rw-r--r-- | cli/tests/integration/lint_tests.rs | 26 |
1 files changed, 5 insertions, 21 deletions
diff --git a/cli/tests/integration/lint_tests.rs b/cli/tests/integration/lint_tests.rs index 990db16b6..8bf35ed8f 100644 --- a/cli/tests/integration/lint_tests.rs +++ b/cli/tests/integration/lint_tests.rs @@ -1,26 +1,10 @@ // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license. -use test_util as util; - -#[test] -fn ignore_unexplicit_files() { - let output = util::deno_cmd() - .current_dir(util::root_path()) - .env("NO_COLOR", "1") - .arg("lint") - .arg("--unstable") - .arg("--ignore=./") - .stderr(std::process::Stdio::piped()) - .spawn() - .unwrap() - .wait_with_output() - .unwrap(); - assert!(!output.status.success()); - assert_eq!( - String::from_utf8_lossy(&output.stderr), - "error: No target files found.\n" - ); -} +itest!(ignore_unexplicit_files { + args: "lint --unstable --ignore=./", + output_str: Some("error: No target files found.\n"), + exit_code: 1, +}); itest!(all { args: "lint lint/without_config/file1.js lint/without_config/file2.ts lint/without_config/ignored_file.ts", |