diff options
| author | Ryan Dahl <ry@tinyclouds.org> | 2022-01-17 20:10:17 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-17 20:10:17 -0500 |
| commit | 39ea4abff4bfa09c4e98e00ad0d4e0e7b78f1187 (patch) | |
| tree | 501ac70cd048f0a197f2accf1cf01234d54cf143 /cli/tests/integration/fmt_tests.rs | |
| parent | b10563cb2083f7af9d4320662d6aa1897b6db23e (diff) | |
feat: auto-discover config file (#13313)
Diffstat (limited to 'cli/tests/integration/fmt_tests.rs')
| -rw-r--r-- | cli/tests/integration/fmt_tests.rs | 9 |
1 files changed, 7 insertions, 2 deletions
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", }); |
