diff options
| author | David Sherret <dsherret@users.noreply.github.com> | 2024-03-15 10:27:43 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-15 14:27:43 +0000 |
| commit | ce768bac834c1efebf2663b01f6e46db99329631 (patch) | |
| tree | 80499c54ba7973e8433ceff3436757ec46717f2d /tests/specs/check | |
| parent | 36e6e4a00997603d2290c416239c2de8feeb6ede (diff) | |
chore(lsp): add tests for compiler options being resolved relative the config file (#22924)
Investigation from #17298
Diffstat (limited to 'tests/specs/check')
4 files changed, 15 insertions, 0 deletions
diff --git a/tests/specs/check/types_resolved_relative_config/__test__.json b/tests/specs/check/types_resolved_relative_config/__test__.json new file mode 100644 index 000000000..6f4937209 --- /dev/null +++ b/tests/specs/check/types_resolved_relative_config/__test__.json @@ -0,0 +1,5 @@ +{ + "args": "check --config sub_dir/deno.json main.ts", + "output": "main.out", + "exitCode": 1 +} diff --git a/tests/specs/check/types_resolved_relative_config/main.out b/tests/specs/check/types_resolved_relative_config/main.out new file mode 100644 index 000000000..212e1224c --- /dev/null +++ b/tests/specs/check/types_resolved_relative_config/main.out @@ -0,0 +1,3 @@ +[# It should be resolving relative the config in sub_dir instead of the cwd] +error: Module not found "file:///[WILDLINE]/sub_dir/a.d.ts". + at file:///[WILDLINE]/sub_dir/deno.json:1:1 diff --git a/tests/specs/check/types_resolved_relative_config/main.ts b/tests/specs/check/types_resolved_relative_config/main.ts new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/tests/specs/check/types_resolved_relative_config/main.ts diff --git a/tests/specs/check/types_resolved_relative_config/sub_dir/deno.json b/tests/specs/check/types_resolved_relative_config/sub_dir/deno.json new file mode 100644 index 000000000..ba7f3344d --- /dev/null +++ b/tests/specs/check/types_resolved_relative_config/sub_dir/deno.json @@ -0,0 +1,7 @@ +{ + "compilerOptions": { + "types": [ + "./a.d.ts" + ] + } +} |
