From c824eb5817db675be4d9966a0d1a43d90dfa61fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Sat, 25 Jan 2020 18:53:16 +0100 Subject: refactor: Modules and Loader trait (#3791) * move is_dyn_import argument from Loader::resolve to Loader::load - it was always kind of strange that resolve() checks permissions. * change argument type from &str to &ModuleSpecifier where applicable --- cli/tests/054_info_local_imports.out | 9 +++++++++ cli/tests/integration_tests.rs | 6 ++++++ 2 files changed, 15 insertions(+) create mode 100644 cli/tests/054_info_local_imports.out (limited to 'cli/tests') diff --git a/cli/tests/054_info_local_imports.out b/cli/tests/054_info_local_imports.out new file mode 100644 index 000000000..9794e4ede --- /dev/null +++ b/cli/tests/054_info_local_imports.out @@ -0,0 +1,9 @@ +local: [WILDCARD]005_more_imports.ts +type: TypeScript +compiled: [WILDCARD]005_more_imports.ts.js +map: [WILDCARD]005_more_imports.ts.js.map +deps: +file://[WILDCARD]/005_more_imports.ts + └─┬ file://[WILDCARD]/subdir/mod1.ts + └─┬ file://[WILDCARD]/subdir/subdir2/mod2.ts + └── file://[WILDCARD]/subdir/print_hello.ts diff --git a/cli/tests/integration_tests.rs b/cli/tests/integration_tests.rs index 3e5073b45..260ded177 100644 --- a/cli/tests/integration_tests.rs +++ b/cli/tests/integration_tests.rs @@ -385,6 +385,12 @@ itest!(_052_no_remote_flag { http_server: true, }); +itest!(_054_info_local_imports { + args: "info 005_more_imports.ts", + output: "054_info_local_imports.out", + exit_code: 0, +}); + itest!(lock_check_ok { args: "run --lock=lock_check_ok.json http://127.0.0.1:4545/cli/tests/003_relative_import.ts", output: "003_relative_import.ts.out", -- cgit v1.2.3