Skip to content

TestGpuixRenderer not available on Linux but types say otherwise #30

Closed

Description

@khromov

index.d.ts declares TestGpuixRenderer unconditionally, so it type-checks on
Linux and then:

TypeError: TestGpuixRenderer is not a constructor

Working as intended: lib.rs gates mod test_renderer on macos/windows,
and CI builds Linux --no-default-features "until wgpu image readback lands".
GpuixRenderer is fine there — only headless tests are out.

The doc comment hints at it ("Metal or DirectX renderer"), but it's an
inference. Since napi copies that comment straight into index.d.ts, one line
in test_renderer.rs above pub struct TestGpuixRenderer would say it outright:

/// macOS and Windows only — the Linux build has no test-support, as wgpu
/// cannot read a rendered image back yet.

Activity

  1. added a commit that references this issue on Sep 1, 2026
    a24b4a4
  2. added a commit that references this issue on Sep 1, 2026
    5937978
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