diff options
| author | Mohammad Sulaiman <mohammad.sulaiman@exalt.ps> | 2024-10-02 12:22:35 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-02 09:22:35 +0000 |
| commit | 3c193aef98bea6b3e0c9592cfdb43268e7a7e4af (patch) | |
| tree | adbf9730a91c0f692a633f028d8066819e37ab94 /tests/specs/check/check_deno_not_found | |
| parent | d116709d064ce85922f1fd635d5915b4659c83d5 (diff) | |
chore: deprecate check itests (#25963)
Diffstat (limited to 'tests/specs/check/check_deno_not_found')
3 files changed, 13 insertions, 0 deletions
diff --git a/tests/specs/check/check_deno_not_found/__test__.jsonc b/tests/specs/check/check_deno_not_found/__test__.jsonc new file mode 100644 index 000000000..cbc6552b3 --- /dev/null +++ b/tests/specs/check/check_deno_not_found/__test__.jsonc @@ -0,0 +1,5 @@ +{ + "args": "check --quiet deno_not_found/main.ts", + "output": "deno_not_found/main.out", + "exitCode": 1 +} diff --git a/tests/specs/check/check_deno_not_found/deno_not_found/main.out b/tests/specs/check/check_deno_not_found/deno_not_found/main.out new file mode 100644 index 000000000..2b6f44d1e --- /dev/null +++ b/tests/specs/check/check_deno_not_found/deno_not_found/main.out @@ -0,0 +1,4 @@ +error: TS2304 [ERROR]: Cannot find name 'Deno'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'deno.ns' or add a triple-slash directive to the top of your entrypoint (main file): /// <reference lib="deno.ns" /> +Deno; +~~~~ + at file:///[WILDCARD]/deno_not_found/main.ts:4:1 diff --git a/tests/specs/check/check_deno_not_found/deno_not_found/main.ts b/tests/specs/check/check_deno_not_found/deno_not_found/main.ts new file mode 100644 index 000000000..3269f047a --- /dev/null +++ b/tests/specs/check/check_deno_not_found/deno_not_found/main.ts @@ -0,0 +1,4 @@ +/// <reference no-default-lib="true"/> +/// <reference lib="es5" /> + +Deno; |
