From 1e0ac609b57b9efdafd54de4cb56f98c507c032f Mon Sep 17 00:00:00 2001 From: David Sherret Date: Mon, 9 Sep 2024 12:33:09 -0400 Subject: BREAKING: remove deprecated files config (#25535) The long form "files" config has been flattened into the parent. Old: ```json { "test": { "files": { "include": ["**/*.ts"], "exclude": ["ignore.ts"] } } } ``` New: ```json { "test": { "include": ["**/*.ts"], "exclude": ["ignore.ts"] } } ``` This was deprecated some time ago, but we're removing it now in Deno 2.0. Closes #25415 --- tests/integration/fmt_tests.rs | 6 ------ tests/integration/lsp_tests.rs | 12 +++--------- tests/integration/test_tests.rs | 6 ------ 3 files changed, 3 insertions(+), 21 deletions(-) (limited to 'tests/integration') diff --git a/tests/integration/fmt_tests.rs b/tests/integration/fmt_tests.rs index c2d38f0d8..b890b3b72 100644 --- a/tests/integration/fmt_tests.rs +++ b/tests/integration/fmt_tests.rs @@ -291,12 +291,6 @@ itest!(fmt_with_config { output: "fmt/fmt_with_config.out", }); -itest!(fmt_with_deprecated_config { - args: - "fmt --config fmt/with_config/deno.deprecated.jsonc fmt/with_config/subdir", - output: "fmt/fmt_with_deprecated_config.out", -}); - itest!(fmt_with_config_default { args: "fmt fmt/with_config/subdir", output: "fmt/fmt_with_config.out", diff --git a/tests/integration/lsp_tests.rs b/tests/integration/lsp_tests.rs index 78e526085..981dcc01d 100644 --- a/tests/integration/lsp_tests.rs +++ b/tests/integration/lsp_tests.rs @@ -10269,9 +10269,7 @@ fn lsp_format_exclude_with_config() { "deno.fmt.jsonc", r#"{ "fmt": { - "files": { - "exclude": ["ignored.ts"] - }, + "exclude": ["ignored.ts"], "options": { "useTabs": true, "lineWidth": 40, @@ -10322,9 +10320,7 @@ fn lsp_format_exclude_default_config() { "deno.fmt.jsonc", r#"{ "fmt": { - "files": { - "exclude": ["ignored.ts"] - }, + "exclude": ["ignored.ts"], "options": { "useTabs": true, "lineWidth": 40, @@ -11707,9 +11703,7 @@ fn lsp_lint_exclude_with_config() { "deno.lint.jsonc", r#"{ "lint": { - "files": { - "exclude": ["ignored.ts"] - }, + "exclude": ["ignored.ts"], "rules": { "exclude": ["camelcase"], "include": ["ban-untagged-todo"], diff --git a/tests/integration/test_tests.rs b/tests/integration/test_tests.rs index d3c9f0009..f6c48654d 100644 --- a/tests/integration/test_tests.rs +++ b/tests/integration/test_tests.rs @@ -124,12 +124,6 @@ itest!(test_with_config2 { output: "test/collect2.out", }); -itest!(test_with_deprecated_config { - args: "test --config test/collect/deno.deprecated.jsonc test/collect", - exit_code: 0, - output: "test/collect.deprecated.out", -}); - itest!(test_with_malformed_config { args: "test --config test/collect/deno.malformed.jsonc", exit_code: 1, -- cgit v1.2.3