summaryrefslogtreecommitdiff
path: root/cli/tests
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2020-10-25 07:05:33 +1100
committerGitHub <noreply@github.com>2020-10-25 07:05:33 +1100
commitdd952818bc6b888b8fd1cff6a3d1e6b15993bafb (patch)
treef1d896ee69bc150a881f921a0cbdbb62afcff628 /cli/tests
parent117fcf61f0feb8d50b3b55f7698929b633980643 (diff)
test(cli): ensure modules can export typed JS files (#8101)
Closes #5935
Diffstat (limited to 'cli/tests')
-rw-r--r--cli/tests/tsc2/file_exportc.ts1
-rw-r--r--cli/tests/tsc2/file_reexports.ts3
-rw-r--r--cli/tests/tsc2/https_deno.land-x-c.d.ts1
-rw-r--r--cli/tests/tsc2/https_deno.land-x-c.js1
4 files changed, 6 insertions, 0 deletions
diff --git a/cli/tests/tsc2/file_exportc.ts b/cli/tests/tsc2/file_exportc.ts
new file mode 100644
index 000000000..efcc5bb46
--- /dev/null
+++ b/cli/tests/tsc2/file_exportc.ts
@@ -0,0 +1 @@
+export * as c from "https://deno.land/x/c.js";
diff --git a/cli/tests/tsc2/file_reexports.ts b/cli/tests/tsc2/file_reexports.ts
new file mode 100644
index 000000000..b26297423
--- /dev/null
+++ b/cli/tests/tsc2/file_reexports.ts
@@ -0,0 +1,3 @@
+import * as c from "./exportc.ts";
+
+console.log(c.c);
diff --git a/cli/tests/tsc2/https_deno.land-x-c.d.ts b/cli/tests/tsc2/https_deno.land-x-c.d.ts
new file mode 100644
index 000000000..bf3a09240
--- /dev/null
+++ b/cli/tests/tsc2/https_deno.land-x-c.d.ts
@@ -0,0 +1 @@
+export const c: string;
diff --git a/cli/tests/tsc2/https_deno.land-x-c.js b/cli/tests/tsc2/https_deno.land-x-c.js
new file mode 100644
index 000000000..7f2cfac77
--- /dev/null
+++ b/cli/tests/tsc2/https_deno.land-x-c.js
@@ -0,0 +1 @@
+export const c = "c";