summaryrefslogtreecommitdiff
path: root/cli/tests/integration_tests.rs
diff options
context:
space:
mode:
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"),