diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2024-09-09 12:33:09 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-09 16:33:09 +0000 |
commit | 1e0ac609b57b9efdafd54de4cb56f98c507c032f (patch) | |
tree | 9a78e6a456a59a25ff6e1bfa14ef8b657c4d3040 /tests/integration | |
parent | 3daab54612309a3e3aec5b7b8bd24b39ad510943 (diff) |
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
Diffstat (limited to 'tests/integration')
-rw-r--r-- | tests/integration/fmt_tests.rs | 6 | ||||
-rw-r--r-- | tests/integration/lsp_tests.rs | 12 | ||||
-rw-r--r-- | tests/integration/test_tests.rs | 6 |
3 files changed, 3 insertions, 21 deletions
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, |