diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2021-11-23 10:38:11 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-23 10:38:11 -0500 |
commit | 51e3db956a5927229e3f46f4eaaf317e935f8f17 (patch) | |
tree | 1af79152c7c1edc2c9bc21e8501aad1ba5d7e426 /cli/tests | |
parent | d8afd5683857de83f3cc80c33322df3d65377210 (diff) |
fix(cli): config file should resolve paths relative to the config file (#12867)
* Add `specifier_to_file_path` to support converting a ModuleSpecifier with a unix-style path to a PathBuf on Windows.
Diffstat (limited to 'cli/tests')
-rw-r--r-- | cli/tests/testdata/fmt/deno.jsonc | 4 | ||||
-rw-r--r-- | cli/tests/testdata/fmt/deno.malformed.jsonc | 4 | ||||
-rw-r--r-- | cli/tests/testdata/fmt/deno.malformed2.jsonc | 4 | ||||
-rw-r--r-- | cli/tests/testdata/lint/Deno.jsonc | 4 | ||||
-rw-r--r-- | cli/tests/testdata/lint/Deno.malformed.jsonc | 4 | ||||
-rw-r--r-- | cli/tests/testdata/lint/Deno.malformed2.jsonc | 4 | ||||
-rw-r--r-- | cli/tests/testdata/lint/Deno.no_tags.jsonc | 4 |
7 files changed, 14 insertions, 14 deletions
diff --git a/cli/tests/testdata/fmt/deno.jsonc b/cli/tests/testdata/fmt/deno.jsonc index 0e682cf36..9c330d34a 100644 --- a/cli/tests/testdata/fmt/deno.jsonc +++ b/cli/tests/testdata/fmt/deno.jsonc @@ -1,8 +1,8 @@ { "fmt": { "files": { - "include": ["fmt/fmt_with_config/"], - "exclude": ["fmt/fmt_with_config/b.ts"] + "include": ["fmt_with_config/"], + "exclude": ["fmt_with_config/b.ts"] }, "options": { "useTabs": true, diff --git a/cli/tests/testdata/fmt/deno.malformed.jsonc b/cli/tests/testdata/fmt/deno.malformed.jsonc index 667480bdc..c6200c4ee 100644 --- a/cli/tests/testdata/fmt/deno.malformed.jsonc +++ b/cli/tests/testdata/fmt/deno.malformed.jsonc @@ -1,8 +1,8 @@ { "fmt": { "files": { - "include": ["fmt/fmt_with_config/"], - "exclude": ["fmt/fmt_with_config/b.ts"] + "include": ["fmt_with_config/"], + "exclude": ["fmt_with_config/b.ts"] }, "dont_know_this_field": {}, "options": { diff --git a/cli/tests/testdata/fmt/deno.malformed2.jsonc b/cli/tests/testdata/fmt/deno.malformed2.jsonc index 2210dc0c7..4d6e99ae2 100644 --- a/cli/tests/testdata/fmt/deno.malformed2.jsonc +++ b/cli/tests/testdata/fmt/deno.malformed2.jsonc @@ -1,8 +1,8 @@ { "fmt": { "files": { - "include": ["fmt/fmt_with_config/"], - "exclude": ["fmt/fmt_with_config/b.ts"], + "include": ["fmt_with_config/"], + "exclude": ["fmt_with_config/b.ts"], "dont_know_this_field": {} }, "options": { diff --git a/cli/tests/testdata/lint/Deno.jsonc b/cli/tests/testdata/lint/Deno.jsonc index 9cd521592..24db221a7 100644 --- a/cli/tests/testdata/lint/Deno.jsonc +++ b/cli/tests/testdata/lint/Deno.jsonc @@ -1,8 +1,8 @@ { "lint": { "files": { - "include": ["lint/with_config/"], - "exclude": ["lint/with_config/b.ts"] + "include": ["with_config/"], + "exclude": ["with_config/b.ts"] }, "rules": { "tags": ["recommended"], diff --git a/cli/tests/testdata/lint/Deno.malformed.jsonc b/cli/tests/testdata/lint/Deno.malformed.jsonc index f0d654114..4534a1fe8 100644 --- a/cli/tests/testdata/lint/Deno.malformed.jsonc +++ b/cli/tests/testdata/lint/Deno.malformed.jsonc @@ -1,8 +1,8 @@ { "lint": { "files": { - "include": ["lint/with_config/"], - "exclude": ["lint/with_config/b.ts"] + "include": ["with_config/"], + "exclude": ["with_config/b.ts"] }, "dont_know_this_field": {}, "rules": { diff --git a/cli/tests/testdata/lint/Deno.malformed2.jsonc b/cli/tests/testdata/lint/Deno.malformed2.jsonc index 741e0321b..335fcdc23 100644 --- a/cli/tests/testdata/lint/Deno.malformed2.jsonc +++ b/cli/tests/testdata/lint/Deno.malformed2.jsonc @@ -1,8 +1,8 @@ { "lint": { "files": { - "include": ["lint/with_config/"], - "exclude": ["lint/with_config/b.ts"], + "include": ["with_config/"], + "exclude": ["with_config/b.ts"], "dont_know_this_field": {} }, "rules": { diff --git a/cli/tests/testdata/lint/Deno.no_tags.jsonc b/cli/tests/testdata/lint/Deno.no_tags.jsonc index b86c0f8a8..4771b0b73 100644 --- a/cli/tests/testdata/lint/Deno.no_tags.jsonc +++ b/cli/tests/testdata/lint/Deno.no_tags.jsonc @@ -2,10 +2,10 @@ "lint": { "files": { "include": [ - "lint/with_config/" + "with_config/" ], "exclude": [ - "lint/with_config/b.ts" + "with_config/b.ts" ] }, "rules": { |