Skip to content

Reusable wasm-bindgen-test browser job for web-crate glue tests #187

Open

Description

@chamber074

Request: a reusable wasm-bindgen-test browser job for web-crate glue tests.

LightCraft's web crate (apps/lightcraft-web) has JS-glue code that can currently only be compiled, never run, in CI: backend.rs::is_folder reads a FileSystemDirectoryHandle via getDirectoryHandle, reflects the DOMException name, and probes keys with getAllKeys(range, 1). The repo has no wasm-bindgen-test dev-dependency and no headless-browser job anywhere in the suite, and adding CI inside a fix PR is out of bounds — so on PR storytold/lightcraft#3989 (round 6) the decision logic was extracted into pure functions with native tests (means_no_folder, key_range_end, preload_start_up in files.rs), and the remaining glue is a direct call into those.

That extraction is a workaround, not coverage. A shared, reusable workflow that runs wasm-bindgen-test in a headless browser would let the web crates across the suite test their glue directly instead of routing around it. Opening this here as the follow-up promised in the #3989 round-6 reply.

Activity

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