diff options
| author | Divy Srivastava <dj.srivastava23@gmail.com> | 2020-08-12 19:17:44 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-12 15:47:44 +0200 |
| commit | 6706eb551532ee6c84ad013377ac2cd91681424a (patch) | |
| tree | 934d2d003c8ef7868986e136a96589e25299607d /cli/tests | |
| parent | fed70c9903e616702241725e82a7d633f2a9b05d (diff) | |
feat: add "--ignore" to deno lint (#6934)
Diffstat (limited to 'cli/tests')
| -rw-r--r-- | cli/tests/integration_tests.rs | 6 | ||||
| -rw-r--r-- | cli/tests/lint/expected_ignore.out | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/cli/tests/integration_tests.rs b/cli/tests/integration_tests.rs index 9ffcad184..bb7ba0d6f 100644 --- a/cli/tests/integration_tests.rs +++ b/cli/tests/integration_tests.rs @@ -2216,6 +2216,12 @@ itest!(deno_lint { exit_code: 1, }); +itest!(deno_lint_ignore { + args: "lint --unstable --ignore=lint/file1.js lint/", + output: "lint/expected_ignore.out", + exit_code: 1, +}); + itest!(deno_lint_glob { args: "lint --unstable lint/", output: "lint/expected_glob.out", diff --git a/cli/tests/lint/expected_ignore.out b/cli/tests/lint/expected_ignore.out new file mode 100644 index 000000000..6041d1c6a --- /dev/null +++ b/cli/tests/lint/expected_ignore.out @@ -0,0 +1,2 @@ +[WILDCARD] +Found 1 problems |
