diff --git a/tests/all/build.rs b/tests/all/build.rs index 98581ae..dbcdaae 100644 --- a/tests/all/build.rs +++ b/tests/all/build.rs @@ -295,3 +295,17 @@ fn build_force() { .assert() .success(); } + +#[test] +fn build_from_new() { + let fixture = utils::fixture::not_a_crate(); + let name = "generated-project"; + fixture.wasm_pack().arg("new").arg(name).assert().success(); + let project_location = fixture.path.join(&name); + fixture + .wasm_pack() + .arg("build") + .arg(&project_location) + .assert() + .success(); +}