Skip to content

Javascript Web Bindings Need Tests #1526

Closed

Description

@xstoicunicornx

This issue is to track follow up from #1513.

Javascript web bindings have now been implemented but still need targeted testing. Currently only the nodejs bindings have test coverage.

Activity

  1. caarloshenriq commented on May 5, 2026

    @caarloshenriq
    Contributor

    I’d like to work on this one. I have background with JavaScript/web development, so I can help add targeted test coverage for the web bindings

  2. xstoicunicornx commented on May 5, 2026

    @xstoicunicornx
    CollaboratorAuthor

    That would be wonderful!

    I did do some preliminary research into how to test the web portion (since I'm not actually familiar with what the recommendation should be) and the two main methods I was looking into were:

    IMO the main objective is to test the ESMAScript module provided by the web bindings, as the CommonJS module provided by the nodejs bindings is covered by existing tests. However, it would be nice if both used the same testing infrastructure (and it is probably pretty low effort to rewrite the existing tests using a new framework with AI help).

    The only reason I was considering the wasm-bindgen-test option is that the JS bindings are already being produced by the wasm-bindgen library (uniffi-bindgen-react-native creates the rust code for wasm-bindgen to transform into wasm with js bindings) so could potentially be a good fit. But again I hadn't yet understood how rust code would test the js modules.

    If you have a different opinion/alternate suggestions on anything I said above I am all ears. Especially if there is a way to test the ESMAScript modules without any new dependencies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions