summaryrefslogtreecommitdiff
path: root/cli/tests/integration_tests.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-05-02 15:51:08 +0200
committerGitHub <noreply@github.com>2020-05-02 15:51:08 +0200
commit2872b362ff76273d897d75bb8a3ddd5510c182f4 (patch)
tree7b1061aacca70eec34be3e307719f5113d932b57 /cli/tests/integration_tests.rs
parentde2c042482741dc23f7d975458a1fba95863de53 (diff)
BREAKING: disallow static import of local modules from remote modules (#5050)
This commit changes module loading logic to disallow statically import local module (file:// scheme) from remote modules (http://, https:// schemes).
Diffstat (limited to 'cli/tests/integration_tests.rs')
-rw-r--r--cli/tests/integration_tests.rs16
1 files changed, 16 insertions, 0 deletions
diff --git a/cli/tests/integration_tests.rs b/cli/tests/integration_tests.rs
index fbaab7674..7827d386a 100644
--- a/cli/tests/integration_tests.rs
+++ b/cli/tests/integration_tests.rs
@@ -1422,6 +1422,22 @@ itest!(error_type_definitions {
output: "error_type_definitions.ts.out",
});
+itest!(error_local_static_import_from_remote_ts {
+ args: "run --reload http://localhost:4545/cli/tests/error_local_static_import_from_remote.ts",
+ check_stderr: true,
+ exit_code: 1,
+ http_server: true,
+ output: "error_local_static_import_from_remote.ts.out",
+});
+
+itest!(error_local_static_import_from_remote_js {
+ args: "run --reload http://localhost:4545/cli/tests/error_local_static_import_from_remote.js",
+ check_stderr: true,
+ exit_code: 1,
+ http_server: true,
+ output: "error_local_static_import_from_remote.js.out",
+});
+
// TODO(bartlomieju) Re-enable
itest_ignore!(error_worker_dynamic {
args: "run --reload error_worker_dynamic.ts",