Plug-ins: the fuzz tests install each case's module in place of the one before

This commit is contained in:
bflatastic
2026-11-09 03:08:22 +07:00
parent 218c711181
commit d4f2cf5394
+2 -1
View File
@@ -30,8 +30,9 @@ fn config() -> ProptestConfig {
c
}
/// Installs `wasm`, in place of any module installed with its id before (`replace: true`).
fn install(s: &mut Session, wasm: &[u8]) -> Result<Value, String> {
s.execute("plugin.install", &json!({"dataBase64": vectorcraft_format::base64_encode(wasm)})).map_err(|e| e.to_string())
s.execute("plugin.install", &json!({"dataBase64": vectorcraft_format::base64_encode(wasm), "replace": true})).map_err(|e| e.to_string())
}
/// The document renders and exports without panicking.