diff options
Diffstat (limited to 'cli/tests')
-rw-r--r-- | cli/tests/055_info_file_json.out | 25 | ||||
-rw-r--r-- | cli/tests/info_json.out | 5 | ||||
-rw-r--r-- | cli/tests/integration_tests.rs | 11 |
3 files changed, 41 insertions, 0 deletions
diff --git a/cli/tests/055_info_file_json.out b/cli/tests/055_info_file_json.out new file mode 100644 index 000000000..20bf94f3f --- /dev/null +++ b/cli/tests/055_info_file_json.out @@ -0,0 +1,25 @@ +{ + "local": "[WILDCARD]005_more_imports.ts", + "fileType": "TypeScript", + "compiled": "[WILDCARD]005_more_imports.ts.js", + "map": null, + "deps": [ + "file://[WILDCARD]/005_more_imports.ts", + [ + [ + "file://[WILDCARD]/subdir/mod1.ts", + [ + [ + "file://[WILDCARD]/subdir/subdir2/mod2.ts", + [ + [ + "file://[WILDCARD]/subdir/print_hello.ts", + [] + ] + ] + ] + ] + ] + ] + ] +}
\ No newline at end of file diff --git a/cli/tests/info_json.out b/cli/tests/info_json.out new file mode 100644 index 000000000..361728a7b --- /dev/null +++ b/cli/tests/info_json.out @@ -0,0 +1,5 @@ +{ + "denoDir": "[WILDCARD]", + "modulesCache": "[WILDCARD]deps", + "typescriptCache": "[WILDCARD]gen" +}
\ No newline at end of file diff --git a/cli/tests/integration_tests.rs b/cli/tests/integration_tests.rs index 9acb4ed3f..87a6f9d63 100644 --- a/cli/tests/integration_tests.rs +++ b/cli/tests/integration_tests.rs @@ -1499,6 +1499,11 @@ itest!(_041_info_flag { output: "041_info_flag.out", }); +itest!(info_json { + args: "info --json --unstable", + output: "info_json.out", +}); + itest!(_042_dyn_import_evalcontext { args: "run --quiet --allow-read --reload 042_dyn_import_evalcontext.ts", output: "042_dyn_import_evalcontext.ts.out", @@ -1552,6 +1557,12 @@ itest!(_054_info_local_imports { exit_code: 0, }); +itest!(_055_info_file_json { + args: "info --quiet --json --unstable 005_more_imports.ts", + output: "055_info_file_json.out", + exit_code: 0, +}); + itest!(_056_make_temp_file_write_perm { args: "run --quiet --allow-read --allow-write=./subdir/ 056_make_temp_file_write_perm.ts", |