Skip to content

Add WASM integration tests for Node#22

Merged
ikskuh merged 1 commit intohdoc-2.0from
codex/create-node.js-tests-for-zig-wasm-project
Jan 4, 2026
Merged

Add WASM integration tests for Node#22
ikskuh merged 1 commit intohdoc-2.0from
codex/create-node.js-tests-for-zig-wasm-project

Conversation

@ikskuh
Copy link
Contributor

@ikskuh ikskuh commented Jan 4, 2026

Summary

  • export the HyperDoc WASM API symbols during the build so JavaScript consumers can call into the module
  • flush WASM writers so HTML output and diagnostics are captured
  • add a Node-based integration script and fixtures that validate HTML snapshots and diagnostics from the WASM build
  • wire the node-based WASM integration tests into zig build test when Node is available, and emit a warning when it is not
  • document the optional Node.js dependency for running the WASM tests

Testing

  • zig build
  • zig build test
  • node test/wasm/validate.js

Codex Task

@ikskuh ikskuh merged commit dcdcad6 into hdoc-2.0 Jan 4, 2026
1 check passed
@ikskuh ikskuh deleted the codex/create-node.js-tests-for-zig-wasm-project branch January 4, 2026 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant