From 857f9b32e02c876e9cce6e82f82fb6ed95248646 Mon Sep 17 00:00:00 2001 From: Yusuke Tanaka Date: Wed, 9 Sep 2020 23:45:31 +0900 Subject: feat(fmt, lint): show number of checked files (#7312) --- cli/tests/integration_tests.rs | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'cli/tests/integration_tests.rs') diff --git a/cli/tests/integration_tests.rs b/cli/tests/integration_tests.rs index 2f70cf050..e00c7a865 100644 --- a/cli/tests/integration_tests.rs +++ b/cli/tests/integration_tests.rs @@ -1720,10 +1720,22 @@ itest!(bundle { itest!(fmt_check_tests_dir { args: "fmt --check ./", - output: "fmt_check_tests_dir.out", + output: "fmt/expected_fmt_check_tests_dir.out", exit_code: 1, }); +itest!(fmt_check_formatted_files { + args: "fmt --check fmt/formatted1.js fmt/formatted2.ts", + output: "fmt/expected_fmt_check_formatted_files.out", + exit_code: 0, +}); + +itest!(fmt_check_ignore { + args: "fmt --check --unstable --ignore=fmt/formatted1.js fmt/", + output: "fmt/expected_fmt_check_ignore.out", + exit_code: 0, +}); + itest!(fmt_stdin { args: "fmt -", input: Some("const a = 1\n"), -- cgit v1.2.3