summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/info/json_output/main.out
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/testdata/info/json_output/main.out')
-rw-r--r--cli/tests/testdata/info/json_output/main.out90
1 files changed, 90 insertions, 0 deletions
diff --git a/cli/tests/testdata/info/json_output/main.out b/cli/tests/testdata/info/json_output/main.out
new file mode 100644
index 000000000..124fc7351
--- /dev/null
+++ b/cli/tests/testdata/info/json_output/main.out
@@ -0,0 +1,90 @@
+{
+ "roots": [
+ "file://[WILDCARD]/info/json_output/main.ts"
+ ],
+ "modules": [
+ {
+ "dependencies": [
+ {
+ "specifier": "../../subdir/mod1.ts",
+ "code": {
+ "specifier": "file://[WILDCARD]/subdir/mod1.ts",
+ "span": {
+ "start": {
+ "line": 0,
+ "character": 52
+ },
+ "end": {
+ "line": 0,
+ "character": 74
+ }
+ }
+ }
+ }
+ ],
+ "kind": "esm",
+ "local": "[WILDCARD]main.ts",
+ [WILDCARD]
+ "mediaType": "TypeScript",
+ "specifier": "file://[WILDCARD]/json_output/main.ts"
+ },
+ {
+ "dependencies": [
+ {
+ "specifier": "./subdir2/mod2.ts",
+ "code": {
+ "specifier": "file://[WILDCARD]/subdir/subdir2/mod2.ts",
+ "span": {
+ "start": {
+ "line": 0,
+ "character": 40
+ },
+ "end": {
+ "line": 0,
+ "character": 59
+ }
+ }
+ }
+ }
+ ],
+ "kind": "esm",
+ "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"
+ },
+ {
+ "dependencies": [
+ {
+ "specifier": "../print_hello.ts",
+ "code": {
+ "specifier": "file://[WILDCARD]/subdir/print_hello.ts",
+ "span": {
+ "start": {
+ "line": 0,
+ "character": 27
+ },
+ "end": {
+ "line": 0,
+ "character": 46
+ }
+ }
+ }
+ }
+ ],
+ "kind": "esm",
+ "local": "[WILDCARD]mod2.ts",
+ [WILDCARD]
+ "mediaType": "TypeScript",
+ "specifier": "file://[WILDCARD]/subdir/subdir2/mod2.ts"
+ }
+ ],
+ "redirects": {}
+}