summaryrefslogtreecommitdiff
path: root/tests/testdata
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2024-09-14 11:58:47 +0100
committerGitHub <noreply@github.com>2024-09-14 11:58:47 +0100
commitaf2d992ecd2b9320072164b6ee295c31a3194406 (patch)
tree0926e2852aa2c4eb300e1f54f4c84d7568589b3b /tests/testdata
parent2c0bf6fd65b3276c4818c73028b19819608c8e70 (diff)
feat: TypeScript 5.6 and `npm:@types/node@22` (#25614)
Diffstat (limited to 'tests/testdata')
-rw-r--r--tests/testdata/check/export_equals_declaration_file/main.ts6
-rw-r--r--tests/testdata/check/export_equals_declaration_file/other.d.ts9
-rw-r--r--tests/testdata/check/export_equals_declaration_file/other.js3
-rw-r--r--tests/testdata/npm/compare_globals/main.out4
4 files changed, 3 insertions, 19 deletions
diff --git a/tests/testdata/check/export_equals_declaration_file/main.ts b/tests/testdata/check/export_equals_declaration_file/main.ts
deleted file mode 100644
index e20a735d5..000000000
--- a/tests/testdata/check/export_equals_declaration_file/main.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-// @deno-types="./other.d.ts"
-import Test, { type Attributes } from "./other.js";
-
-const other: Attributes = {};
-console.log(Test());
-console.log(other);
diff --git a/tests/testdata/check/export_equals_declaration_file/other.d.ts b/tests/testdata/check/export_equals_declaration_file/other.d.ts
deleted file mode 100644
index 5e1274fa5..000000000
--- a/tests/testdata/check/export_equals_declaration_file/other.d.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-export = other;
-
-declare function other(): string;
-
-declare namespace other {
- interface Attributes {
- [attr: string]: string;
- }
-}
diff --git a/tests/testdata/check/export_equals_declaration_file/other.js b/tests/testdata/check/export_equals_declaration_file/other.js
deleted file mode 100644
index f66c03162..000000000
--- a/tests/testdata/check/export_equals_declaration_file/other.js
+++ /dev/null
@@ -1,3 +0,0 @@
-export default function other() {
- return "test";
-}
diff --git a/tests/testdata/npm/compare_globals/main.out b/tests/testdata/npm/compare_globals/main.out
index f6f90d533..234a68971 100644
--- a/tests/testdata/npm/compare_globals/main.out
+++ b/tests/testdata/npm/compare_globals/main.out
@@ -1,10 +1,12 @@
[UNORDERED_START]
Download http://localhost:4260/@types/node
+Download http://localhost:4260/undici-types
Download http://localhost:4260/@denotest/globals
[UNORDERED_END]
[UNORDERED_START]
Download http://localhost:4260/@denotest/globals/1.0.0.tgz
-Download http://localhost:4260/@types/node/node-18.16.19.tgz
+Download http://localhost:4260/@types/node/node-22.5.4.tgz
+Download http://localhost:4260/undici-types/undici-types-6.19.8.tgz
[UNORDERED_END]
Check file:///[WILDCARD]/npm/compare_globals/main.ts
true