diff options
| author | David Sherret <dsherret@users.noreply.github.com> | 2023-02-15 11:30:54 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-15 11:30:54 -0500 |
| commit | b34e751a5b2193e8ce65203386e00147c08a7a64 (patch) | |
| tree | 47ad04c90e4df431396185b1e3d15fcd2623a973 /cli/tests/integration | |
| parent | c7535950b6de086fce741809728129c79288dee8 (diff) | |
refactor: make resolver required (#17783)
Makes the resolver required and prints a warning when vendoring and a
dynamic import can't be resolved.
Closes #16522
Diffstat (limited to 'cli/tests/integration')
| -rw-r--r-- | cli/tests/integration/run_tests.rs | 3 | ||||
| -rw-r--r-- | cli/tests/integration/vendor_tests.rs | 8 |
2 files changed, 11 insertions, 0 deletions
diff --git a/cli/tests/integration/run_tests.rs b/cli/tests/integration/run_tests.rs index 3f2b8d81f..6baa408e9 100644 --- a/cli/tests/integration/run_tests.rs +++ b/cli/tests/integration/run_tests.rs @@ -3379,6 +3379,9 @@ async fn test_resolve_dns() { .unwrap(); let err = String::from_utf8_lossy(&output.stderr); let out = String::from_utf8_lossy(&output.stdout); + if !output.status.success() { + eprintln!("stderr: {err}"); + } assert!(output.status.success()); assert!(err.starts_with("Check file")); diff --git a/cli/tests/integration/vendor_tests.rs b/cli/tests/integration/vendor_tests.rs index cd2f7f12e..1f159fe80 100644 --- a/cli/tests/integration/vendor_tests.rs +++ b/cli/tests/integration/vendor_tests.rs @@ -478,6 +478,14 @@ fn dynamic_non_analyzable_import() { assert!(output.status.success()); } +itest!(dynamic_non_existent { + args: "vendor http://localhost:4545/vendor/dynamic_non_existent.ts", + temp_cwd: true, + exit_code: 0, + http_server: true, + output: "vendor/dynamic_non_existent.ts.out", +}); + #[test] fn update_existing_config_test() { let _server = http_server(); |
