Skip to content

Commit

Permalink
Add sanity test for custom target directory
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasol committed May 30, 2023
1 parent 25ef942 commit e3a5284
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/all/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit e3a5284

Please sign in to comment.