summaryrefslogtreecommitdiff
path: root/cli/tests/integration_tests.rs
diff options
context:
space:
mode:
authorsouldzin <4908127+souldzin@users.noreply.github.com>2020-08-13 10:30:46 -0500
committerGitHub <noreply@github.com>2020-08-13 17:30:46 +0200
commitd6cee706955f300086f41f9318d23631f64f036b (patch)
tree61ff94128f1f4a03af2574a488d04301bbfcf3f7 /cli/tests/integration_tests.rs
parent08ab4d46ca1860da16b5250fe3872cefbe682637 (diff)
feat: Add "--json" flag to deno lint (#6940)
Co-authored-by: JackSkylark <jdslaughter44@gmail.com>
Diffstat (limited to 'cli/tests/integration_tests.rs')
-rw-r--r--cli/tests/integration_tests.rs11
1 files changed, 9 insertions, 2 deletions
diff --git a/cli/tests/integration_tests.rs b/cli/tests/integration_tests.rs
index bb7ba0d6f..6e487d12f 100644
--- a/cli/tests/integration_tests.rs
+++ b/cli/tests/integration_tests.rs
@@ -2216,14 +2216,21 @@ itest!(deno_lint {
exit_code: 1,
});
+itest!(deno_lint_json {
+ args:
+ "lint --unstable --json lint/file1.js lint/file2.ts lint/ignored_file.ts lint/malformed.js",
+ output: "lint/expected_json.out",
+ exit_code: 1,
+});
+
itest!(deno_lint_ignore {
- args: "lint --unstable --ignore=lint/file1.js lint/",
+ args: "lint --unstable --ignore=lint/file1.js,lint/malformed.js lint/",
output: "lint/expected_ignore.out",
exit_code: 1,
});
itest!(deno_lint_glob {
- args: "lint --unstable lint/",
+ args: "lint --unstable --ignore=lint/malformed.js lint/",
output: "lint/expected_glob.out",
exit_code: 1,
});