diff options
| author | David Sherret <dsherret@users.noreply.github.com> | 2022-06-18 12:44:43 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-18 12:44:43 -0400 |
| commit | f564497630d8d12023cd093904bf237ab1079a94 (patch) | |
| tree | 1c14d4e641e739fdf99cf4a16d45db35c1da515f /cli/tests/integration | |
| parent | fa7cad06de648a7e35995b9a366ae2cee3b3bc4f (diff) | |
fix(fmt): should fail `--check` on parse error (#14907)
Diffstat (limited to 'cli/tests/integration')
| -rw-r--r-- | cli/tests/integration/fmt_tests.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cli/tests/integration/fmt_tests.rs b/cli/tests/integration/fmt_tests.rs index 18ad2ab29..3f4bc15cb 100644 --- a/cli/tests/integration/fmt_tests.rs +++ b/cli/tests/integration/fmt_tests.rs @@ -177,6 +177,12 @@ itest!(fmt_check_ignore { exit_code: 0, }); +itest!(fmt_check_parse_error { + args: "fmt --check fmt/parse_error/parse_error.ts", + output: "fmt/fmt_check_parse_error.out", + exit_code: 1, +}); + itest!(fmt_stdin { args: "fmt -", input: Some("const a = 1\n"), |
