docs: PocketIC testing guide#67
Conversation
e53cacc to
f10264f
Compare
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Updated Pic JS section:
|
Review: PocketICMust fix
Suggestions
Verified
|
Feedback addressed (PR #67 — PocketIC page)Must-fix items applied1. Rust API inconsistency — WasmResult vs Vec mismatch (standardized on v9+) The helper struct example used 2. JS Verified against 3. Wildcard version Pinned to major version 9, matching the API used throughout the code examples. Suggestions applied4. POCKET_IC_SERVER_PATH env var — added verification comment The env var is not documented in 5. WASM_V1/WASM_V2 undefined — added clarifying comment Added a comment above the lifecycle example showing how 6. JS timer example — added note about pattern preference Added a note before the timer snippet recommending Suggestions skipped
Build statusBuild fails on |
Summary
pocket-ic), JavaScript/TypeScript (Pic JS), Pythonadvance_time+tickfor timer testingPocketIcBuilder(NNS + application subnets)PocketIc.create(), teardown, time advancementSync recommendation
informed by
dfinity/portal—docs/building-apps/test/pocket-ic.mdx; informed bydfinity/examples—rust/unit_testable_rust_canister,rust/guards