diff options
Diffstat (limited to 'cli/tests')
-rw-r--r-- | cli/tests/integration/lint_tests.rs | 7 | ||||
-rw-r--r-- | cli/tests/testdata/lint/expected_compact.out | 5 |
2 files changed, 12 insertions, 0 deletions
diff --git a/cli/tests/integration/lint_tests.rs b/cli/tests/integration/lint_tests.rs index 5ed12f59e..6b78e0609 100644 --- a/cli/tests/integration/lint_tests.rs +++ b/cli/tests/integration/lint_tests.rs @@ -42,6 +42,13 @@ itest!(json { exit_code: 1, }); +itest!(compact { + args: + "lint --compact lint/without_config/file1.js lint/without_config/file2.ts lint/without_config/ignored_file.tss", + output: "lint/expected_compact.out", + exit_code: 1, +}); + itest!(ignore { args: "lint --ignore=lint/without_config/file1.js,lint/without_config/malformed.js,lint/without_config/lint_with_config/ lint/without_config/", diff --git a/cli/tests/testdata/lint/expected_compact.out b/cli/tests/testdata/lint/expected_compact.out new file mode 100644 index 000000000..03b77faa1 --- /dev/null +++ b/cli/tests/testdata/lint/expected_compact.out @@ -0,0 +1,5 @@ +[WILDCARD]file1.js: line 1, col 1 - Ignore directive requires lint rule name(s) (ban-untagged-ignore) +[WILDCARD]file1.js: line 2, col 15 - Empty block statement (no-empty) +[WILDCARD]file2.ts: line 3, col 14 - Empty block statement (no-empty) +Found 3 problems +Checked 2 files |