diff options
author | Mohammad Sulaiman <mohammad.sulaiman@exalt.ps> | 2024-09-16 20:08:00 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-16 17:08:00 +0000 |
commit | acc32e1cee043ef7233a94bcf5645c4a842ed13a (patch) | |
tree | d2ef2a68efc5f461b650243c0199a43904f1ce38 /tests/testdata | |
parent | e47606a5549aff43540bf2b8adc5db0309c28dbc (diff) |
chore: move info itests (#25659)
Diffstat (limited to 'tests/testdata')
27 files changed, 0 insertions, 433 deletions
diff --git a/tests/testdata/info/041_info_flag.out b/tests/testdata/info/041_info_flag.out deleted file mode 100644 index 3506a29e4..000000000 --- a/tests/testdata/info/041_info_flag.out +++ /dev/null @@ -1,6 +0,0 @@ -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 deleted file mode 100644 index b9e72f659..000000000 --- a/tests/testdata/info/041_info_flag_location.out +++ /dev/null @@ -1,7 +0,0 @@ -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 deleted file mode 100644 index f49fc2356..000000000 --- a/tests/testdata/info/049_info_flag_script_jsx.out +++ /dev/null @@ -1,15 +0,0 @@ -[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 deleted file mode 100644 index ee1773b76..000000000 --- a/tests/testdata/info/054_info_local_imports.out +++ /dev/null @@ -1,9 +0,0 @@ -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/076_info_json_deps_order.out b/tests/testdata/info/076_info_json_deps_order.out deleted file mode 100644 index 33d58da16..000000000 --- a/tests/testdata/info/076_info_json_deps_order.out +++ /dev/null @@ -1,165 +0,0 @@ -{ - "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": {}, - "version": 1, - "npmPackages": {} -} diff --git a/tests/testdata/info/076_info_json_deps_order.ts b/tests/testdata/info/076_info_json_deps_order.ts deleted file mode 100644 index b1ae75e68..000000000 --- a/tests/testdata/info/076_info_json_deps_order.ts +++ /dev/null @@ -1,2 +0,0 @@ -// 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 deleted file mode 100644 index 065396f18..000000000 --- a/tests/testdata/info/data_null_error/data_null_error.out +++ /dev/null @@ -1,7 +0,0 @@ -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 deleted file mode 100644 index 6e3e99bd4..000000000 --- a/tests/testdata/info/data_null_error/mod.ts +++ /dev/null @@ -1 +0,0 @@ -/// <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 deleted file mode 100644 index 6ecc85676..000000000 --- a/tests/testdata/info/data_null_error/types.d.ts +++ /dev/null @@ -1 +0,0 @@ -declare class Test {} diff --git a/tests/testdata/info/info_json.out b/tests/testdata/info/info_json.out deleted file mode 100644 index 607489ca3..000000000 --- a/tests/testdata/info/info_json.out +++ /dev/null @@ -1,9 +0,0 @@ -{ - "version": 1, - "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 deleted file mode 100644 index 004bf03db..000000000 --- a/tests/testdata/info/info_json_location.out +++ /dev/null @@ -1,10 +0,0 @@ -{ - "version": 1, - "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 deleted file mode 100644 index c62d690c1..000000000 --- a/tests/testdata/info/info_missing_module.out +++ /dev/null @@ -1,7 +0,0 @@ -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 deleted file mode 100644 index 3340f3859..000000000 --- a/tests/testdata/info/info_recursive_imports_test.out +++ /dev/null @@ -1,13 +0,0 @@ -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_type_import.out b/tests/testdata/info/info_type_import.out deleted file mode 100644 index 0423efe82..000000000 --- a/tests/testdata/info/info_type_import.out +++ /dev/null @@ -1,7 +0,0 @@ -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/json_output/main.out b/tests/testdata/info/json_output/main.out deleted file mode 100644 index 43c4f7398..000000000 --- a/tests/testdata/info/json_output/main.out +++ /dev/null @@ -1,92 +0,0 @@ -{ - "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": {}, - "version": 1, - "npmPackages": {} -} diff --git a/tests/testdata/info/json_output/main.ts b/tests/testdata/info/json_output/main.ts deleted file mode 100644 index 927bc55ed..000000000 --- a/tests/testdata/info/json_output/main.ts +++ /dev/null @@ -1,11 +0,0 @@ -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 deleted file mode 100644 index cb13318ca..000000000 --- a/tests/testdata/info/multiple_imports.out +++ /dev/null @@ -1,15 +0,0 @@ -[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/types_header.out b/tests/testdata/info/types_header.out deleted file mode 100644 index 722e02f77..000000000 --- a/tests/testdata/info/types_header.out +++ /dev/null @@ -1,9 +0,0 @@ -[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 deleted file mode 100644 index ee44ba947..000000000 --- a/tests/testdata/info/with_config/deno-override.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "importMap": "import_map.json" -} diff --git a/tests/testdata/info/with_config/deno.json b/tests/testdata/info/with_config/deno.json deleted file mode 100644 index 0967ef424..000000000 --- a/tests/testdata/info/with_config/deno.json +++ /dev/null @@ -1 +0,0 @@ -{} diff --git a/tests/testdata/info/with_config/import_map.json b/tests/testdata/info/with_config/import_map.json deleted file mode 100644 index 0967ef424..000000000 --- a/tests/testdata/info/with_config/import_map.json +++ /dev/null @@ -1 +0,0 @@ -{} diff --git a/tests/testdata/info/with_config/test.ts b/tests/testdata/info/with_config/test.ts deleted file mode 100644 index 85ce559e8..000000000 --- a/tests/testdata/info/with_config/test.ts +++ /dev/null @@ -1 +0,0 @@ -console.log("foo"); diff --git a/tests/testdata/info/with_config/with_config.out b/tests/testdata/info/with_config/with_config.out deleted file mode 100644 index 95a1f30bc..000000000 --- a/tests/testdata/info/with_config/with_config.out +++ /dev/null @@ -1,7 +0,0 @@ -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 deleted file mode 100644 index aaf7260c6..000000000 --- a/tests/testdata/info/with_import_map/deno.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "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 deleted file mode 100644 index cb5c6ca45..000000000 --- a/tests/testdata/info/with_import_map/deno.lock +++ /dev/null @@ -1,10 +0,0 @@ -{ - "version": "3", - "remote": { - "https://esm.sh/preact@10.15.1": "4bfd0b2c5a2d432e0c8cda295d6b7304152ae08c85f7d0a22f91289c97085b89", - "https://esm.sh/preact@10.15.1/debug": "4bfd0b2c5a2d432e0c8cda295d6b7304152ae08c85f7d0a22f91289c97085b89", - "https://esm.sh/stable/preact@10.15.1/denonext/debug.js": "e8e5e198bd48c93d484c91c4c78af1900bd81d9bfcfd543e8ac75216f5404c10", - "https://esm.sh/stable/preact@10.15.1/denonext/devtools.js": "f61430e179a84483f8ea8dc098d7d0d46b2f0546de4027518bfcef197cd665c9", - "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 deleted file mode 100644 index e38f14a58..000000000 --- a/tests/testdata/info/with_import_map/main.tsx +++ /dev/null @@ -1,2 +0,0 @@ -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 deleted file mode 100644 index 29dc17737..000000000 --- a/tests/testdata/info/with_import_map/with_import_map.out +++ /dev/null @@ -1,16 +0,0 @@ -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] |