()
| 859 | |
| 860 | #[test] |
| 861 | fn it_warns_with_proxy_and_adapter_settings() -> Result<()> { |
| 862 | let project = Project::new("foo", true)?; |
| 863 | let adapter_path = "adapter/wasi_snapshot_preview1.wasm"; |
| 864 | project.file( |
| 865 | adapter_path, |
| 866 | wasi_preview1_component_adapter_provider::WASI_SNAPSHOT_PREVIEW1_REACTOR_ADAPTER, |
| 867 | )?; |
| 868 | project.update_manifest(|mut doc| { |
| 869 | doc["package"]["metadata"]["component"]["proxy"] = value(true); |
| 870 | doc["package"]["metadata"]["component"]["adapter"] = value(adapter_path); |
| 871 | Ok(doc) |
| 872 | })?; |
| 873 | |
| 874 | project |
| 875 | .cargo_component(["build"]) |
| 876 | .assert() |
| 877 | .stderr(contains("warning: ignoring `proxy` setting due to `adapter` setting being present in `Cargo.toml`")) |
| 878 | .success(); |
| 879 | |
| 880 | validate_component(&project.debug_wasm("foo"))?; |
| 881 | |
| 882 | Ok(()) |
| 883 | } |
| 884 | |
| 885 | #[test] |
| 886 | fn it_builds_with_proxy_adapter() -> Result<()> { |
nothing calls this directly
no test coverage detected