|
|
@ -295,3 +295,17 @@ fn build_force() { |
|
|
|
.assert() |
|
|
|
.assert() |
|
|
|
.success(); |
|
|
|
.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(); |
|
|
|
|
|
|
|
} |
|
|
|