From 39ea4abff4bfa09c4e98e00ad0d4e0e7b78f1187 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Mon, 17 Jan 2022 20:10:17 -0500 Subject: feat: auto-discover config file (#13313) --- cli/tests/integration/fmt_tests.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'cli/tests/integration/fmt_tests.rs') diff --git a/cli/tests/integration/fmt_tests.rs b/cli/tests/integration/fmt_tests.rs index 18743fb00..bb4c8b451 100644 --- a/cli/tests/integration/fmt_tests.rs +++ b/cli/tests/integration/fmt_tests.rs @@ -177,13 +177,18 @@ itest!(fmt_stdin_check_not_formatted { }); itest!(fmt_with_config { - args: "fmt --config fmt/deno.jsonc fmt/fmt_with_config/", + args: "fmt --config fmt/with_config/deno.jsonc fmt/with_config/subdir", + output: "fmt/fmt_with_config.out", +}); + +itest!(fmt_with_config_default { + args: "fmt fmt/with_config/subdir", output: "fmt/fmt_with_config.out", }); // Check if CLI flags take precedence itest!(fmt_with_config_and_flags { - args: "fmt --config fmt/deno.jsonc --ignore=fmt/fmt_with_config/a.ts,fmt/fmt_with_config/b.ts", + args: "fmt --config fmt/with_config/deno.jsonc --ignore=fmt/with_config/subdir/a.ts,fmt/with_config/subdir/b.ts", output: "fmt/fmt_with_config_and_flags.out", }); -- cgit v1.2.3