summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/type_definitions.ts4
-rw-r--r--tests/type_definitions.ts.out2
-rw-r--r--tests/type_definitions/fizz.d.ts4
-rw-r--r--tests/type_definitions/fizz.js2
-rw-r--r--tests/type_definitions/qat.ts1
5 files changed, 10 insertions, 3 deletions
diff --git a/tests/type_definitions.ts b/tests/type_definitions.ts
index 8e85df2b9..ecf3ae0b2 100644
--- a/tests/type_definitions.ts
+++ b/tests/type_definitions.ts
@@ -3,4 +3,8 @@ import { foo } from "./type_definitions/foo.js";
// @deno-types="./type_definitions/fizz.d.ts"
import "./type_definitions/fizz.js";
+import * as qat from "./type_definitions/qat.ts";
+
console.log(foo);
+console.log(fizz);
+console.log(qat.qat);
diff --git a/tests/type_definitions.ts.out b/tests/type_definitions.ts.out
index 291e85a7b..b4fa88c50 100644
--- a/tests/type_definitions.ts.out
+++ b/tests/type_definitions.ts.out
@@ -1 +1,3 @@
[WILDCARD]foo
+fizz
+qat
diff --git a/tests/type_definitions/fizz.d.ts b/tests/type_definitions/fizz.d.ts
index 4b087efb7..34eb41b96 100644
--- a/tests/type_definitions/fizz.d.ts
+++ b/tests/type_definitions/fizz.d.ts
@@ -1,2 +1,2 @@
-/** An exported value. */
-export const fizz: string;
+/** A global value. */
+declare const fizz: string;
diff --git a/tests/type_definitions/fizz.js b/tests/type_definitions/fizz.js
index 5141a4ddf..852162c94 100644
--- a/tests/type_definitions/fizz.js
+++ b/tests/type_definitions/fizz.js
@@ -1 +1 @@
-export const fizz = "fizz";
+globalThis.fizz = "fizz";
diff --git a/tests/type_definitions/qat.ts b/tests/type_definitions/qat.ts
new file mode 100644
index 000000000..6196c9d38
--- /dev/null
+++ b/tests/type_definitions/qat.ts
@@ -0,0 +1 @@
+export const qat = "qat";