summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/bundle
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/testdata/bundle')
-rw-r--r--cli/tests/testdata/bundle/check_local_by_default.out6
-rw-r--r--cli/tests/testdata/bundle/check_local_by_default.ts3
-rw-r--r--cli/tests/testdata/bundle/check_local_by_default2.out4
-rw-r--r--cli/tests/testdata/bundle/check_local_by_default2.ts6
4 files changed, 19 insertions, 0 deletions
diff --git a/cli/tests/testdata/bundle/check_local_by_default.out b/cli/tests/testdata/bundle/check_local_by_default.out
new file mode 100644
index 000000000..c4559d1fa
--- /dev/null
+++ b/cli/tests/testdata/bundle/check_local_by_default.out
@@ -0,0 +1,6 @@
+// deno-fmt-ignore-file
+// deno-lint-ignore-file
+// This code was bundled using `deno bundle` and it's not recommended to edit it manually
+
+console.log(12);
+
diff --git a/cli/tests/testdata/bundle/check_local_by_default.ts b/cli/tests/testdata/bundle/check_local_by_default.ts
new file mode 100644
index 000000000..2ae8c2692
--- /dev/null
+++ b/cli/tests/testdata/bundle/check_local_by_default.ts
@@ -0,0 +1,3 @@
+import * as a from "http://localhost:4545/subdir/type_error.ts";
+
+console.log(a.a);
diff --git a/cli/tests/testdata/bundle/check_local_by_default2.out b/cli/tests/testdata/bundle/check_local_by_default2.out
new file mode 100644
index 000000000..60f5760f8
--- /dev/null
+++ b/cli/tests/testdata/bundle/check_local_by_default2.out
@@ -0,0 +1,4 @@
+error: TS2322 [ERROR]: Type '12' is not assignable to type '"b"'.
+const b: "b" = 12;
+ ^
+ at [WILDCARD]bundle/check_local_by_default2.ts:3:7
diff --git a/cli/tests/testdata/bundle/check_local_by_default2.ts b/cli/tests/testdata/bundle/check_local_by_default2.ts
new file mode 100644
index 000000000..5177ff944
--- /dev/null
+++ b/cli/tests/testdata/bundle/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);