diff options
author | Bartek Iwańczuk <biwanczuk@gmail.com> | 2020-01-25 18:53:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-25 18:53:16 +0100 |
commit | c824eb5817db675be4d9966a0d1a43d90dfa61fd (patch) | |
tree | 400906eb76f95b3457a15c90baca58ecd193b22f /cli/tests | |
parent | 37a7b01d5cf555bbc57d74dc9e04000115ec4867 (diff) |
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
Diffstat (limited to 'cli/tests')
-rw-r--r-- | cli/tests/054_info_local_imports.out | 9 | ||||
-rw-r--r-- | cli/tests/integration_tests.rs | 6 |
2 files changed, 15 insertions, 0 deletions
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", |