From d6cee706955f300086f41f9318d23631f64f036b Mon Sep 17 00:00:00 2001 From: souldzin <4908127+souldzin@users.noreply.github.com> Date: Thu, 13 Aug 2020 10:30:46 -0500 Subject: feat: Add "--json" flag to deno lint (#6940) Co-authored-by: JackSkylark --- cli/tests/integration_tests.rs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'cli/tests/integration_tests.rs') 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, }); -- cgit v1.2.3