From e3a52843a3bfd70ef5a6c2a867ed60dae32b259b Mon Sep 17 00:00:00 2001 From: Tomas Olvecky Date: Tue, 30 May 2023 17:59:52 +0200 Subject: [PATCH] Add sanity test for custom target directory --- tests/all/build.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/all/build.rs b/tests/all/build.rs index 6c42b48a..1b214078 100644 --- a/tests/all/build.rs +++ b/tests/all/build.rs @@ -21,6 +21,20 @@ fn it_should_build_js_hello_world_example() { fixture.wasm_pack().arg("build").assert().success(); } +#[test] +fn it_should_build_js_hello_world_example_with_custom_target_dir() { + let fixture = utils::fixture::js_hello_world(); + fixture + .wasm_pack() + .arg("build") + .arg("--target-dir") + .arg("target2") + .arg("--all-features") + .arg("--offline") + .assert() + .success(); +} + #[test] fn it_should_build_crates_in_a_workspace() { let fixture = utils::fixture::Fixture::new();