summaryrefslogtreecommitdiff
path: root/tests/testdata/info
diff options
context:
space:
mode:
authorMatt Mastracci <matthew@mastracci.com>2024-02-10 13:22:13 -0700
committerGitHub <noreply@github.com>2024-02-10 20:22:13 +0000
commitf5e46c9bf2f50d66a953fa133161fc829cecff06 (patch)
tree8faf2f5831c1c7b11d842cd9908d141082c869a5 /tests/testdata/info
parentd2477f780630a812bfd65e3987b70c0d309385bb (diff)
chore: move cli/tests/ -> tests/ (#22369)
This looks like a massive PR, but it's only a move from cli/tests -> tests, and updates of relative paths for files. This is the first step towards aggregate all of the integration test files under tests/, which will lead to a set of integration tests that can run without the CLI binary being built. While we could leave these tests under `cli`, it would require us to keep a more complex directory structure for the various test runners. In addition, we have a lot of complexity to ignore various test files in the `cli` project itself (cargo publish exclusion rules, autotests = false, etc). And finally, the `tests/` folder will eventually house the `test_ffi`, `test_napi` and other testing code, reducing the size of the root repo directory. For easier review, the extremely large and noisy "move" is in the first commit (with no changes -- just a move), while the remainder of the changes to actual files is in the second commit.
Diffstat (limited to 'tests/testdata/info')
-rw-r--r--tests/testdata/info/031_info_ts_error.out6
-rw-r--r--tests/testdata/info/031_info_ts_error.ts1
-rw-r--r--tests/testdata/info/041_info_flag.out6
-rw-r--r--tests/testdata/info/041_info_flag_location.out7
-rw-r--r--tests/testdata/info/049_info_flag_script_jsx.out15
-rw-r--r--tests/testdata/info/054_info_local_imports.out9
-rw-r--r--tests/testdata/info/065_import_map_info.out6
-rw-r--r--tests/testdata/info/076_info_json_deps_order.out164
-rw-r--r--tests/testdata/info/076_info_json_deps_order.ts2
-rw-r--r--tests/testdata/info/data_null_error/data_null_error.out7
-rw-r--r--tests/testdata/info/data_null_error/mod.ts1
-rw-r--r--tests/testdata/info/data_null_error/types.d.ts1
-rw-r--r--tests/testdata/info/error_009_missing_js_module.js1
-rw-r--r--tests/testdata/info/error_009_missing_js_module.js.out1
-rw-r--r--tests/testdata/info/info_json.out8
-rw-r--r--tests/testdata/info/info_json_location.out9
-rw-r--r--tests/testdata/info/info_missing_module.out7
-rw-r--r--tests/testdata/info/info_recursive_imports_test.out13
-rw-r--r--tests/testdata/info/info_recursive_imports_test.ts5
-rw-r--r--tests/testdata/info/info_type_import.out7
-rw-r--r--tests/testdata/info/info_type_import.ts3
-rw-r--r--tests/testdata/info/json_output/main.out91
-rw-r--r--tests/testdata/info/json_output/main.ts11
-rw-r--r--tests/testdata/info/multiple_imports.out15
-rw-r--r--tests/testdata/info/recursive_imports/A.ts7
-rw-r--r--tests/testdata/info/recursive_imports/B.ts7
-rw-r--r--tests/testdata/info/recursive_imports/C.ts8
-rw-r--r--tests/testdata/info/recursive_imports/common.ts2
-rw-r--r--tests/testdata/info/types_header.out9
-rw-r--r--tests/testdata/info/with_config/deno-override.json3
-rw-r--r--tests/testdata/info/with_config/deno.json1
-rw-r--r--tests/testdata/info/with_config/import_map.json1
-rw-r--r--tests/testdata/info/with_config/test.ts1
-rw-r--r--tests/testdata/info/with_config/with_config.out7
-rw-r--r--tests/testdata/info/with_import_map/deno.json6
-rw-r--r--tests/testdata/info/with_import_map/deno.lock7
-rw-r--r--tests/testdata/info/with_import_map/main.tsx2
-rw-r--r--tests/testdata/info/with_import_map/with_import_map.out16
38 files changed, 473 insertions, 0 deletions
diff --git a/tests/testdata/info/031_info_ts_error.out b/tests/testdata/info/031_info_ts_error.out
new file mode 100644
index 000000000..81edd0032
--- /dev/null
+++ b/tests/testdata/info/031_info_ts_error.out
@@ -0,0 +1,6 @@
+local: [WILDCARD]031_info_ts_error.ts
+type: TypeScript
+dependencies: 0 unique
+size: [WILDCARD]
+
+[WILDCARD]031_info_ts_error.ts ([WILDCARD])
diff --git a/tests/testdata/info/031_info_ts_error.ts b/tests/testdata/info/031_info_ts_error.ts
new file mode 100644
index 000000000..9b7492dbe
--- /dev/null
+++ b/tests/testdata/info/031_info_ts_error.ts
@@ -0,0 +1 @@
+const _foo: string = 1;
diff --git a/tests/testdata/info/041_info_flag.out b/tests/testdata/info/041_info_flag.out
new file mode 100644
index 000000000..3506a29e4
--- /dev/null
+++ b/tests/testdata/info/041_info_flag.out
@@ -0,0 +1,6 @@
+DENO_DIR location: [WILDCARD]
+Remote modules cache: [WILDCARD]deps
+npm modules cache: [WILDCARD]npm
+Emitted modules cache: [WILDCARD]gen
+Language server registries cache: [WILDCARD]registries
+Origin storage: [WILDCARD]location_data
diff --git a/tests/testdata/info/041_info_flag_location.out b/tests/testdata/info/041_info_flag_location.out
new file mode 100644
index 000000000..b9e72f659
--- /dev/null
+++ b/tests/testdata/info/041_info_flag_location.out
@@ -0,0 +1,7 @@
+DENO_DIR location: [WILDCARD]
+Remote modules cache: [WILDCARD]deps
+npm modules cache: [WILDCARD]npm
+Emitted modules cache: [WILDCARD]gen
+Language server registries cache: [WILDCARD]registries
+Origin storage: [WILDCARD]location_data[WILDCARD]
+Local Storage: [WILDCARD]location_data[WILDCARD]local_storage
diff --git a/tests/testdata/info/049_info_flag_script_jsx.out b/tests/testdata/info/049_info_flag_script_jsx.out
new file mode 100644
index 000000000..f49fc2356
--- /dev/null
+++ b/tests/testdata/info/049_info_flag_script_jsx.out
@@ -0,0 +1,15 @@
+[WILDCARD]
+local: [WILDCARD]http[WILDCARD]127.0.0.1_PORT4545[WILDCARD]
+type: TypeScript
+dependencies: 8 unique
+size: [WILDCARD]
+
+http://127.0.0.1:4545/run/048_media_types_jsx.ts ([WILDCARD])
+├── http://localhost:4545/subdir/mt_text_typescript_tsx.t1.tsx ([WILDCARD])
+├── http://localhost:4545/subdir/mt_video_vdn_tsx.t2.tsx ([WILDCARD])
+├── http://localhost:4545/subdir/mt_video_mp2t_tsx.t3.tsx ([WILDCARD])
+├── http://localhost:4545/subdir/mt_application_x_typescript_tsx.t4.tsx ([WILDCARD])
+├── http://localhost:4545/subdir/mt_text_javascript_jsx.j1.jsx ([WILDCARD])
+├── http://localhost:4545/subdir/mt_application_ecmascript_jsx.j2.jsx ([WILDCARD])
+├── http://localhost:4545/subdir/mt_text_ecmascript_jsx.j3.jsx ([WILDCARD])
+└── http://localhost:4545/subdir/mt_application_x_javascript_jsx.j4.jsx ([WILDCARD])
diff --git a/tests/testdata/info/054_info_local_imports.out b/tests/testdata/info/054_info_local_imports.out
new file mode 100644
index 000000000..ee1773b76
--- /dev/null
+++ b/tests/testdata/info/054_info_local_imports.out
@@ -0,0 +1,9 @@
+local: [WILDCARD]005_more_imports.ts
+type: TypeScript
+dependencies: 3 unique
+size: [WILDCARD]
+
+file://[WILDCARD]/005_more_imports.ts ([WILDCARD])
+└─┬ file://[WILDCARD]/subdir/mod1.ts ([WILDCARD])
+ └─┬ file://[WILDCARD]/subdir/subdir2/mod2.ts ([WILDCARD])
+ └── file://[WILDCARD]/subdir/print_hello.ts ([WILDCARD])
diff --git a/tests/testdata/info/065_import_map_info.out b/tests/testdata/info/065_import_map_info.out
new file mode 100644
index 000000000..68d98f14a
--- /dev/null
+++ b/tests/testdata/info/065_import_map_info.out
@@ -0,0 +1,6 @@
+local: [WILDCARD]test.ts
+type: TypeScript
+dependencies: 7 unique
+size: [WILDCARD]
+
+[WILDCARD]
diff --git a/tests/testdata/info/076_info_json_deps_order.out b/tests/testdata/info/076_info_json_deps_order.out
new file mode 100644
index 000000000..a1b15e00c
--- /dev/null
+++ b/tests/testdata/info/076_info_json_deps_order.out
@@ -0,0 +1,164 @@
+{
+ "roots": [
+ "file://[WILDCARD]/076_info_json_deps_order.ts"
+ ],
+ "modules": [
+ {
+ "kind": "esm",
+ "dependencies": [
+ {
+ "specifier": "./recursive_imports/A.ts",
+ "code": {
+ "specifier": "file://[WILDCARD]/recursive_imports/A.ts",
+ "span": {
+ "start": {
+ "line": 1,
+ "character": 18
+ },
+ "end": {
+ "line": 1,
+ "character": 44
+ }
+ }
+ }
+ }
+ ],
+ "local": "[WILDCARD]076_info_json_deps_order.ts",
+ [WILDCARD]
+ "mediaType": "TypeScript",
+ "specifier": "file://[WILDCARD]/076_info_json_deps_order.ts"
+ },
+ {
+ "kind": "esm",
+ "dependencies": [
+ {
+ "specifier": "./B.ts",
+ "code": {
+ "specifier": "file://[WILDCARD]/recursive_imports/B.ts",
+ "span": {
+ "start": {
+ "line": 0,
+ "character": 18
+ },
+ "end": {
+ "line": 0,
+ "character": 26
+ }
+ }
+ }
+ },
+ {
+ "specifier": "./common.ts",
+ "code": {
+ "specifier": "file://[WILDCARD]/recursive_imports/common.ts",
+ "span": {
+ "start": {
+ "line": 1,
+ "character": 22
+ },
+ "end": {
+ "line": 1,
+ "character": 35
+ }
+ }
+ }
+ }
+ ],
+ "local": "[WILDCARD]A.ts",
+ [WILDCARD]
+ "mediaType": "TypeScript",
+ "specifier": "file://[WILDCARD]/recursive_imports/A.ts"
+ },
+ {
+ "kind": "esm",
+ "dependencies": [
+ {
+ "specifier": "./C.ts",
+ "code": {
+ "specifier": "file://[WILDCARD]/recursive_imports/C.ts",
+ "span": {
+ "start": {
+ "line": 0,
+ "character": 18
+ },
+ "end": {
+ "line": 0,
+ "character": 26
+ }
+ }
+ }
+ },
+ {
+ "specifier": "./common.ts",
+ "code": {
+ "specifier": "file://[WILDCARD]/recursive_imports/common.ts",
+ "span": {
+ "start": {
+ "line": 1,
+ "character": 22
+ },
+ "end": {
+ "line": 1,
+ "character": 35
+ }
+ }
+ }
+ }
+ ],
+ "local": "[WILDCARD]B.ts",
+ [WILDCARD]
+ "mediaType": "TypeScript",
+ "specifier": "file://[WILDCARD]/recursive_imports/B.ts"
+ },
+ {
+ "kind": "esm",
+ "dependencies": [
+ {
+ "specifier": "./A.ts",
+ "code": {
+ "specifier": "file://[WILDCARD]/recursive_imports/A.ts",
+ "span": {
+ "start": {
+ "line": 0,
+ "character": 18
+ },
+ "end": {
+ "line": 0,
+ "character": 26
+ }
+ }
+ }
+ },
+ {
+ "specifier": "./common.ts",
+ "code": {
+ "specifier": "file://[WILDCARD]/recursive_imports/common.ts",
+ "span": {
+ "start": {
+ "line": 1,
+ "character": 22
+ },
+ "end": {
+ "line": 1,
+ "character": 35
+ }
+ }
+ }
+ }
+ ],
+ "local": "[WILDCARD]C.ts",
+ [WILDCARD]
+ "mediaType": "TypeScript",
+ "specifier": "file://[WILDCARD]/recursive_imports/C.ts"
+ },
+ {
+ "kind": "esm",
+ "local": "[WILDCARD]common.ts",
+ [WILDCARD]
+ "mediaType": "TypeScript",
+ "specifier": "file://[WILDCARD]/recursive_imports/common.ts"
+ }
+ ],
+ "redirects": {},
+ "npmPackages": {}
+}
diff --git a/tests/testdata/info/076_info_json_deps_order.ts b/tests/testdata/info/076_info_json_deps_order.ts
new file mode 100644
index 000000000..b1ae75e68
--- /dev/null
+++ b/tests/testdata/info/076_info_json_deps_order.ts
@@ -0,0 +1,2 @@
+// deno-lint-ignore no-unused-vars
+import { A } from "./recursive_imports/A.ts";
diff --git a/tests/testdata/info/data_null_error/data_null_error.out b/tests/testdata/info/data_null_error/data_null_error.out
new file mode 100644
index 000000000..065396f18
--- /dev/null
+++ b/tests/testdata/info/data_null_error/data_null_error.out
@@ -0,0 +1,7 @@
+local: [WILDCARD]mod.ts
+type: TypeScript
+dependencies: 1 unique
+size: [WILDCARD]
+
+file://[WILDCARD]/mod.ts ([WILDCARD])
+└── file://[WILDCARD]/types.d.ts ([WILDCARD])
diff --git a/tests/testdata/info/data_null_error/mod.ts b/tests/testdata/info/data_null_error/mod.ts
new file mode 100644
index 000000000..6e3e99bd4
--- /dev/null
+++ b/tests/testdata/info/data_null_error/mod.ts
@@ -0,0 +1 @@
+/// <reference path="./types.d.ts" />
diff --git a/tests/testdata/info/data_null_error/types.d.ts b/tests/testdata/info/data_null_error/types.d.ts
new file mode 100644
index 000000000..6ecc85676
--- /dev/null
+++ b/tests/testdata/info/data_null_error/types.d.ts
@@ -0,0 +1 @@
+declare class Test {}
diff --git a/tests/testdata/info/error_009_missing_js_module.js b/tests/testdata/info/error_009_missing_js_module.js
new file mode 100644
index 000000000..e6ca88934
--- /dev/null
+++ b/tests/testdata/info/error_009_missing_js_module.js
@@ -0,0 +1 @@
+import "./bad-module.js";
diff --git a/tests/testdata/info/error_009_missing_js_module.js.out b/tests/testdata/info/error_009_missing_js_module.js.out
new file mode 100644
index 000000000..edb08da1c
--- /dev/null
+++ b/tests/testdata/info/error_009_missing_js_module.js.out
@@ -0,0 +1 @@
+Cannot resolve module "./bad-module.js" from "[WILDCARD]error_009_missing_js_module.js"
diff --git a/tests/testdata/info/info_json.out b/tests/testdata/info/info_json.out
new file mode 100644
index 000000000..3215af742
--- /dev/null
+++ b/tests/testdata/info/info_json.out
@@ -0,0 +1,8 @@
+{
+ "denoDir": "[WILDCARD]",
+ "modulesCache": "[WILDCARD]deps",
+ "npmCache": "[WILDCARD]npm",
+ "typescriptCache": "[WILDCARD]gen",
+ "registryCache": "[WILDCARD]registries",
+ "originStorage": "[WILDCARD]location_data"
+}
diff --git a/tests/testdata/info/info_json_location.out b/tests/testdata/info/info_json_location.out
new file mode 100644
index 000000000..510fa7749
--- /dev/null
+++ b/tests/testdata/info/info_json_location.out
@@ -0,0 +1,9 @@
+{
+ "denoDir": "[WILDCARD]",
+ "modulesCache": "[WILDCARD]deps",
+ "npmCache": "[WILDCARD]npm",
+ "typescriptCache": "[WILDCARD]gen",
+ "registryCache": "[WILDCARD]registries",
+ "originStorage": "[WILDCARD]location_data[WILDCARD]",
+ "localStorage": "[WILDCARD]location_data[WILDCARD]local_storage"
+}
diff --git a/tests/testdata/info/info_missing_module.out b/tests/testdata/info/info_missing_module.out
new file mode 100644
index 000000000..c62d690c1
--- /dev/null
+++ b/tests/testdata/info/info_missing_module.out
@@ -0,0 +1,7 @@
+local: [WILDCARD]error_009_missing_js_module.js
+type: JavaScript
+dependencies: 0 unique
+size: 26B
+
+file://[WILDCARD]/error_009_missing_js_module.js (26B)
+└── file://[WILDCARD]/bad-module.js (missing)
diff --git a/tests/testdata/info/info_recursive_imports_test.out b/tests/testdata/info/info_recursive_imports_test.out
new file mode 100644
index 000000000..3340f3859
--- /dev/null
+++ b/tests/testdata/info/info_recursive_imports_test.out
@@ -0,0 +1,13 @@
+local: [WILDCARD]info_recursive_imports_test.ts
+type: TypeScript
+dependencies: 4 unique
+size: [WILDCARD]
+
+file://[WILDCARD]/info_recursive_imports_test.ts ([WILDCARD])
+└─┬ file://[WILDCARD]/recursive_imports/A.ts ([WILDCARD])
+ ├─┬ file://[WILDCARD]/recursive_imports/B.ts ([WILDCARD])
+ │ ├─┬ file://[WILDCARD]/recursive_imports/C.ts ([WILDCARD])
+ │ │ ├── file://[WILDCARD]/recursive_imports/A.ts *
+ │ │ └── file://[WILDCARD]/recursive_imports/common.ts ([WILDCARD])
+ │ └── file://[WILDCARD]/recursive_imports/common.ts *
+ └── file://[WILDCARD]/recursive_imports/common.ts *
diff --git a/tests/testdata/info/info_recursive_imports_test.ts b/tests/testdata/info/info_recursive_imports_test.ts
new file mode 100644
index 000000000..c9ba44755
--- /dev/null
+++ b/tests/testdata/info/info_recursive_imports_test.ts
@@ -0,0 +1,5 @@
+import { A } from "./recursive_imports/A.ts";
+
+export function test() {
+ A();
+}
diff --git a/tests/testdata/info/info_type_import.out b/tests/testdata/info/info_type_import.out
new file mode 100644
index 000000000..0423efe82
--- /dev/null
+++ b/tests/testdata/info/info_type_import.out
@@ -0,0 +1,7 @@
+local: [WILDCARD]info_type_import.ts
+type: TypeScript
+dependencies: 1 unique
+size: [WILDCARD]
+
+[WILDCARD]info_type_import.ts ([WILDCARD])
+└── [WILDCARD]type_and_code.ts ([WILDCARD])
diff --git a/tests/testdata/info/info_type_import.ts b/tests/testdata/info/info_type_import.ts
new file mode 100644
index 000000000..4db9f3387
--- /dev/null
+++ b/tests/testdata/info/info_type_import.ts
@@ -0,0 +1,3 @@
+import { AnInterface as _, isAnInterface } from "../subdir/type_and_code.ts";
+
+isAnInterface({});
diff --git a/tests/testdata/info/json_output/main.out b/tests/testdata/info/json_output/main.out
new file mode 100644
index 000000000..5a89d5cab
--- /dev/null
+++ b/tests/testdata/info/json_output/main.out
@@ -0,0 +1,91 @@
+{
+ "roots": [
+ "file://[WILDCARD]/info/json_output/main.ts"
+ ],
+ "modules": [
+ {
+ "kind": "esm",
+ "dependencies": [
+ {
+ "specifier": "../../subdir/mod1.ts",
+ "code": {
+ "specifier": "file://[WILDCARD]/subdir/mod1.ts",
+ "span": {
+ "start": {
+ "line": 0,
+ "character": 52
+ },
+ "end": {
+ "line": 0,
+ "character": 74
+ }
+ }
+ }
+ }
+ ],
+ "local": "[WILDCARD]main.ts",
+ [WILDCARD]
+ "mediaType": "TypeScript",
+ "specifier": "file://[WILDCARD]/json_output/main.ts"
+ },
+ {
+ "kind": "esm",
+ "dependencies": [
+ {
+ "specifier": "./subdir2/mod2.ts",
+ "code": {
+ "specifier": "file://[WILDCARD]/subdir/subdir2/mod2.ts",
+ "span": {
+ "start": {
+ "line": 0,
+ "character": 40
+ },
+ "end": {
+ "line": 0,
+ "character": 59
+ }
+ }
+ }
+ }
+ ],
+ "local": "[WILDCARD]mod1.ts",
+ [WILDCARD]
+ "mediaType": "TypeScript",
+ "specifier": "file://[WILDCARD]/subdir/mod1.ts"
+ },
+ {
+ "kind": "esm",
+ "local": "[WILDCARD]print_hello.ts",
+ [WILDCARD]
+ "mediaType": "TypeScript",
+ "specifier": "file://[WILDCARD]/subdir/print_hello.ts"
+ },
+ {
+ "kind": "esm",
+ "dependencies": [
+ {
+ "specifier": "../print_hello.ts",
+ "code": {
+ "specifier": "file://[WILDCARD]/subdir/print_hello.ts",
+ "span": {
+ "start": {
+ "line": 0,
+ "character": 27
+ },
+ "end": {
+ "line": 0,
+ "character": 46
+ }
+ }
+ }
+ }
+ ],
+ "local": "[WILDCARD]mod2.ts",
+ [WILDCARD]
+ "mediaType": "TypeScript",
+ "specifier": "file://[WILDCARD]/subdir/subdir2/mod2.ts"
+ }
+ ],
+ "redirects": {},
+ "npmPackages": {}
+}
diff --git a/tests/testdata/info/json_output/main.ts b/tests/testdata/info/json_output/main.ts
new file mode 100644
index 000000000..927bc55ed
--- /dev/null
+++ b/tests/testdata/info/json_output/main.ts
@@ -0,0 +1,11 @@
+import { printHello3, returnsFoo2, returnsHi } from "../../subdir/mod1.ts";
+
+printHello3();
+
+if (returnsHi() !== "Hi") {
+ throw Error("Unexpected");
+}
+
+if (returnsFoo2() !== "Foo") {
+ throw Error("Unexpected");
+}
diff --git a/tests/testdata/info/multiple_imports.out b/tests/testdata/info/multiple_imports.out
new file mode 100644
index 000000000..cb13318ca
--- /dev/null
+++ b/tests/testdata/info/multiple_imports.out
@@ -0,0 +1,15 @@
+[WILDCARD]
+local: [WILDCARD]http[WILDCARD]127.0.0.1_PORT4545[WILDCARD]
+type: TypeScript
+dependencies: 8 unique
+size: [WILDCARD]
+
+http://127.0.0.1:4545/run/019_media_types.ts ([WILDCARD])
+├── http://localhost:4545/subdir/mt_text_typescript.t1.ts ([WILDCARD])
+├── http://localhost:4545/subdir/mt_video_vdn.t2.ts ([WILDCARD])
+├── http://localhost:4545/subdir/mt_video_mp2t.t3.ts ([WILDCARD])
+├── http://localhost:4545/subdir/mt_application_x_typescript.t4.ts ([WILDCARD])
+├── http://localhost:4545/subdir/mt_text_javascript.j1.js ([WILDCARD])
+├── http://localhost:4545/subdir/mt_application_ecmascript.j2.js ([WILDCARD])
+├── http://localhost:4545/subdir/mt_text_ecmascript.j3.js ([WILDCARD])
+└── http://localhost:4545/subdir/mt_application_x_javascript.j4.js ([WILDCARD])
diff --git a/tests/testdata/info/recursive_imports/A.ts b/tests/testdata/info/recursive_imports/A.ts
new file mode 100644
index 000000000..43ecdbe5e
--- /dev/null
+++ b/tests/testdata/info/recursive_imports/A.ts
@@ -0,0 +1,7 @@
+import { B } from "./B.ts";
+import { thing } from "./common.ts";
+
+export function A() {
+ thing();
+ B();
+}
diff --git a/tests/testdata/info/recursive_imports/B.ts b/tests/testdata/info/recursive_imports/B.ts
new file mode 100644
index 000000000..9fff0fdc9
--- /dev/null
+++ b/tests/testdata/info/recursive_imports/B.ts
@@ -0,0 +1,7 @@
+import { C } from "./C.ts";
+import { thing } from "./common.ts";
+
+export function B() {
+ thing();
+ C();
+}
diff --git a/tests/testdata/info/recursive_imports/C.ts b/tests/testdata/info/recursive_imports/C.ts
new file mode 100644
index 000000000..e47e77b41
--- /dev/null
+++ b/tests/testdata/info/recursive_imports/C.ts
@@ -0,0 +1,8 @@
+import { A } from "./A.ts";
+import { thing } from "./common.ts";
+
+export function C() {
+ if (A != null) {
+ thing();
+ }
+}
diff --git a/tests/testdata/info/recursive_imports/common.ts b/tests/testdata/info/recursive_imports/common.ts
new file mode 100644
index 000000000..2b16a7bf1
--- /dev/null
+++ b/tests/testdata/info/recursive_imports/common.ts
@@ -0,0 +1,2 @@
+export function thing() {
+}
diff --git a/tests/testdata/info/types_header.out b/tests/testdata/info/types_header.out
new file mode 100644
index 000000000..722e02f77
--- /dev/null
+++ b/tests/testdata/info/types_header.out
@@ -0,0 +1,9 @@
+[WILDCARD]
+local: [WILDCARD]type_directives_01.ts
+type: TypeScript
+dependencies: 2 unique
+size: [WILDCARD]
+
+[WILDCARD]/type_directives_01.ts ([WILDCARD])
+└─┬ http://127.0.0.1:4545/xTypeScriptTypes.js ([WILDCARD])
+ └── http://127.0.0.1:4545/xTypeScriptTypes.d.ts ([WILDCARD])
diff --git a/tests/testdata/info/with_config/deno-override.json b/tests/testdata/info/with_config/deno-override.json
new file mode 100644
index 000000000..ee44ba947
--- /dev/null
+++ b/tests/testdata/info/with_config/deno-override.json
@@ -0,0 +1,3 @@
+{
+ "importMap": "import_map.json"
+}
diff --git a/tests/testdata/info/with_config/deno.json b/tests/testdata/info/with_config/deno.json
new file mode 100644
index 000000000..0967ef424
--- /dev/null
+++ b/tests/testdata/info/with_config/deno.json
@@ -0,0 +1 @@
+{}
diff --git a/tests/testdata/info/with_config/import_map.json b/tests/testdata/info/with_config/import_map.json
new file mode 100644
index 000000000..0967ef424
--- /dev/null
+++ b/tests/testdata/info/with_config/import_map.json
@@ -0,0 +1 @@
+{}
diff --git a/tests/testdata/info/with_config/test.ts b/tests/testdata/info/with_config/test.ts
new file mode 100644
index 000000000..85ce559e8
--- /dev/null
+++ b/tests/testdata/info/with_config/test.ts
@@ -0,0 +1 @@
+console.log("foo");
diff --git a/tests/testdata/info/with_config/with_config.out b/tests/testdata/info/with_config/with_config.out
new file mode 100644
index 000000000..95a1f30bc
--- /dev/null
+++ b/tests/testdata/info/with_config/with_config.out
@@ -0,0 +1,7 @@
+Warning the configuration file "[WILDCARD]/deno-override.json" contains an entry for "importMap" that is being ignored.
+local: [WILDCARD]test.ts
+type: TypeScript
+dependencies: 0 unique
+size: [WILDCARD]
+
+file:///[WILDCARD]/test.ts ([WILDCARD])
diff --git a/tests/testdata/info/with_import_map/deno.json b/tests/testdata/info/with_import_map/deno.json
new file mode 100644
index 000000000..aaf7260c6
--- /dev/null
+++ b/tests/testdata/info/with_import_map/deno.json
@@ -0,0 +1,6 @@
+{
+ "imports": {
+ "preact": "https://esm.sh/preact@10.15.1",
+ "preact/": "https://esm.sh/preact@10.15.1/"
+ }
+}
diff --git a/tests/testdata/info/with_import_map/deno.lock b/tests/testdata/info/with_import_map/deno.lock
new file mode 100644
index 000000000..78080ede2
--- /dev/null
+++ b/tests/testdata/info/with_import_map/deno.lock
@@ -0,0 +1,7 @@
+{
+ "version": "2",
+ "remote": {
+ "https://esm.sh/preact@10.15.1": "2b79349676a4942fbcf835c4efa909791c2f0aeca195225bf22bac9866e94b4e",
+ "https://esm.sh/stable/preact@10.15.1/denonext/preact.mjs": "30710ac1d5ff3711ae0c04eddbeb706f34f82d97489f61aaf09897bc75d2a628"
+ }
+}
diff --git a/tests/testdata/info/with_import_map/main.tsx b/tests/testdata/info/with_import_map/main.tsx
new file mode 100644
index 000000000..e38f14a58
--- /dev/null
+++ b/tests/testdata/info/with_import_map/main.tsx
@@ -0,0 +1,2 @@
+import { render } from "preact";
+console.log(render);
diff --git a/tests/testdata/info/with_import_map/with_import_map.out b/tests/testdata/info/with_import_map/with_import_map.out
new file mode 100644
index 000000000..29dc17737
--- /dev/null
+++ b/tests/testdata/info/with_import_map/with_import_map.out
@@ -0,0 +1,16 @@
+Download https://esm.sh/preact@10.15.1/debug
+Download https://esm.sh/stable/preact@10.15.1/denonext/preact.mjs
+Download https://esm.sh/stable/preact@10.15.1/denonext/devtools.js
+Download https://esm.sh/stable/preact@10.15.1/denonext/debug.js
+local: [WILDCARD]
+type: JavaScript
+dependencies: 3 unique
+size: [WILDCARD]
+
+https://esm.sh/preact@10.15.1/debug [WILDCARD]
+├── https://esm.sh/stable/preact@10.15.1/denonext/preact.mjs [WILDCARD]
+├─┬ https://esm.sh/stable/preact@10.15.1/denonext/devtools.js [WILDCARD]
+│ └── https://esm.sh/stable/preact@10.15.1/denonext/preact.mjs [WILDCARD]
+└─┬ https://esm.sh/stable/preact@10.15.1/denonext/debug.js [WILDCARD]
+ ├── https://esm.sh/stable/preact@10.15.1/denonext/preact.mjs [WILDCARD]
+ └── https://esm.sh/stable/preact@10.15.1/denonext/devtools.js [WILDCARD]