summaryrefslogtreecommitdiff
path: root/cli/tests/integration_tests.rs
diff options
context:
space:
mode:
authorYusuke Tanaka <yusuktan@maguro.dev>2020-09-09 23:45:31 +0900
committerGitHub <noreply@github.com>2020-09-09 16:45:31 +0200
commit857f9b32e02c876e9cce6e82f82fb6ed95248646 (patch)
tree85bcb5f2215228c932690fd229e3a52d01335b85 /cli/tests/integration_tests.rs
parent1fcbf9cb8a2aa330ddc95c1481976b9e06ca994c (diff)
feat(fmt, lint): show number of checked files (#7312)
Diffstat (limited to 'cli/tests/integration_tests.rs')
-rw-r--r--cli/tests/integration_tests.rs14
1 files changed, 13 insertions, 1 deletions
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"),