summaryrefslogtreecommitdiff
path: root/tests/testdata/eval
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testdata/eval')
-rw-r--r--tests/testdata/eval/check_local_by_default.out1
-rw-r--r--tests/testdata/eval/check_local_by_default2.out3
-rw-r--r--tests/testdata/eval/check_local_by_default2.ts6
-rw-r--r--tests/testdata/eval/dyn_import_eval.out1
-rw-r--r--tests/testdata/eval/env_file_missing.out2
5 files changed, 13 insertions, 0 deletions
diff --git a/tests/testdata/eval/check_local_by_default.out b/tests/testdata/eval/check_local_by_default.out
new file mode 100644
index 000000000..52d98849f
--- /dev/null
+++ b/tests/testdata/eval/check_local_by_default.out
@@ -0,0 +1 @@
+[Module: null prototype] { a: 12 }
diff --git a/tests/testdata/eval/check_local_by_default2.out b/tests/testdata/eval/check_local_by_default2.out
new file mode 100644
index 000000000..26a1fe6f8
--- /dev/null
+++ b/tests/testdata/eval/check_local_by_default2.out
@@ -0,0 +1,3 @@
+12
+12
+[Module: null prototype] { }
diff --git a/tests/testdata/eval/check_local_by_default2.ts b/tests/testdata/eval/check_local_by_default2.ts
new file mode 100644
index 000000000..5177ff944
--- /dev/null
+++ b/tests/testdata/eval/check_local_by_default2.ts
@@ -0,0 +1,6 @@
+import * as a from "http://localhost:4545/subdir/type_error.ts";
+
+const b: "b" = 12;
+
+console.log(a.a);
+console.log(b);
diff --git a/tests/testdata/eval/dyn_import_eval.out b/tests/testdata/eval/dyn_import_eval.out
new file mode 100644
index 000000000..89e16b478
--- /dev/null
+++ b/tests/testdata/eval/dyn_import_eval.out
@@ -0,0 +1 @@
+[Module: null prototype] { isMod4: true }
diff --git a/tests/testdata/eval/env_file_missing.out b/tests/testdata/eval/env_file_missing.out
new file mode 100644
index 000000000..221acab93
--- /dev/null
+++ b/tests/testdata/eval/env_file_missing.out
@@ -0,0 +1,2 @@
+Warning The `--env` flag was used, but the dotenv file 'missing' was not found.
+undefined