diff options
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" + ] + } +} |
