|
|
|
@ -227,4 +227,22 @@ fn build_with_and_without_wasm_bindgen_debug() { |
|
|
|
|
"Should only contain moved value assertions when debug assertions are enabled" |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
#[cfg(target_os = "windows")] |
|
|
|
|
#[test] |
|
|
|
|
fn it_format_out_dir_on_windows() { |
|
|
|
|
let fixture = utils::fixture::js_hello_world(); |
|
|
|
|
fixture.install_local_wasm_bindgen(); |
|
|
|
|
let cli = Cli::from_iter_safe(vec![ |
|
|
|
|
"wasm-pack", |
|
|
|
|
"build", |
|
|
|
|
&fixture.path.display().to_string(), |
|
|
|
|
]) |
|
|
|
|
let result = command::run_wasm_pack(cli.cmd, &logger); |
|
|
|
|
assert!(result.is_ok(), "js_hello_world example should pass"); |
|
|
|
|
|
|
|
|
|
let wasm_pack_log = utils::file::read_file(&fixture.path.join("wasm-pack.log")).unwrap(); |
|
|
|
|
assert!( |
|
|
|
|
wasm_pack_log.contains(r"Your wasm pkg is ready to publish at C:\Users\"), |
|
|
|
|
"directories in wasm-pack.log should be well formatted", |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|