diff options
| author | David Sherret <dsherret@users.noreply.github.com> | 2024-09-25 09:04:57 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-25 09:04:57 -0400 |
| commit | 8cdb309ffd6686b2f3c4a2126d927fd5770be34d (patch) | |
| tree | 68dfbc0d13e94b9e18f45925d1d5492a7ca6e267 /tests/specs/check | |
| parent | 5c40b47629bc83b9120019b77b34ced5eaabcffe (diff) | |
fix(check): properly surface dependency errors in types file of js file (#25860)
We weren't surfacing dependency errors in types files of js files.
Diffstat (limited to 'tests/specs/check')
4 files changed, 9 insertions, 0 deletions
diff --git a/tests/specs/check/dts_importing_non_existent/__test__.jsonc b/tests/specs/check/dts_importing_non_existent/__test__.jsonc new file mode 100644 index 000000000..3775b7fb4 --- /dev/null +++ b/tests/specs/check/dts_importing_non_existent/__test__.jsonc @@ -0,0 +1,5 @@ +{ + "args": "check index.js", + "output": "check.out", + "exitCode": 1 +} diff --git a/tests/specs/check/dts_importing_non_existent/check.out b/tests/specs/check/dts_importing_non_existent/check.out new file mode 100644 index 000000000..80ec9593b --- /dev/null +++ b/tests/specs/check/dts_importing_non_existent/check.out @@ -0,0 +1,2 @@ +error: Module not found "file:///[WILDLINE]/test". + at file:///[WILDLINE]/index.d.ts:1:22 diff --git a/tests/specs/check/dts_importing_non_existent/index.d.ts b/tests/specs/check/dts_importing_non_existent/index.d.ts new file mode 100644 index 000000000..4216ca3ed --- /dev/null +++ b/tests/specs/check/dts_importing_non_existent/index.d.ts @@ -0,0 +1 @@ +export { Test } from "./test"; diff --git a/tests/specs/check/dts_importing_non_existent/index.js b/tests/specs/check/dts_importing_non_existent/index.js new file mode 100644 index 000000000..4b2c5ecce --- /dev/null +++ b/tests/specs/check/dts_importing_non_existent/index.js @@ -0,0 +1 @@ +/// <reference types="./index.d.ts" /> |
