diff options
Diffstat (limited to 'tests/testdata/run/with_config')
5 files changed, 20 insertions, 0 deletions
diff --git a/tests/testdata/run/with_config/auto_discovery_log.out b/tests/testdata/run/with_config/auto_discovery_log.out new file mode 100644 index 000000000..1a25eb9a7 --- /dev/null +++ b/tests/testdata/run/with_config/auto_discovery_log.out @@ -0,0 +1,4 @@ +DEBUG RS - [WILDCARD] - Config file found at '[WILDCARD]deno.jsonc' +[WILDCARD] +ok +[WILDCARD] diff --git a/tests/testdata/run/with_config/deno.jsonc b/tests/testdata/run/with_config/deno.jsonc new file mode 100644 index 000000000..9017fac30 --- /dev/null +++ b/tests/testdata/run/with_config/deno.jsonc @@ -0,0 +1,6 @@ +{ + // type settings for frontend dev + "compilerOptions": { + "lib": ["esnext", "dom"] + } +} diff --git a/tests/testdata/run/with_config/frontend_work.ts b/tests/testdata/run/with_config/frontend_work.ts new file mode 100644 index 000000000..783af44e4 --- /dev/null +++ b/tests/testdata/run/with_config/frontend_work.ts @@ -0,0 +1,4 @@ +function _main() { + console.log(document); +} +console.log("ok"); diff --git a/tests/testdata/run/with_config/no_auto_discovery.out b/tests/testdata/run/with_config/no_auto_discovery.out new file mode 100644 index 000000000..59339ebe5 --- /dev/null +++ b/tests/testdata/run/with_config/no_auto_discovery.out @@ -0,0 +1,4 @@ +error: TS2584 [ERROR]: Cannot find name 'document'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'. + console.log(document); + ~~~~~~~~ + at [WILDCARD]run/with_config/frontend_work.ts:2:15 diff --git a/tests/testdata/run/with_config/server_side_work.ts b/tests/testdata/run/with_config/server_side_work.ts new file mode 100644 index 000000000..12db2ab05 --- /dev/null +++ b/tests/testdata/run/with_config/server_side_work.ts @@ -0,0 +1,2 @@ +const _ = Deno.build.os; +console.log("ok"); |
