Skip to content

Add a browser-runtime shadow-cljs integration test - #61

Merged
bbatsov merged 1 commit into
masterfrom
browser-runtime-integration-test
Jul 18, 2026
Merged

Add a browser-runtime shadow-cljs integration test#61
bbatsov merged 1 commit into
masterfrom
browser-runtime-integration-test

Conversation

@bbatsov

@bbatsov bbatsov commented Jul 18, 2026

Copy link
Copy Markdown
Member

Our shadow-cljs integration coverage only ran over a Node runtime, so the browser completion path in #47 and #48 was never actually exercised. This spins up a :browser-test shadow build, serves it via :dev-http, and loads it in headless Chrome so a real browser runtime connects back and we can drive completions against it.

The payoff: it confirms (.lo js/console) method completion works fine over a browser runtime on a plain clone. That pins #47/#48 to mranderson inlining (the inlined introspection namespace not loading in the browser), not the browser path itself - and gives us a rig to chase the actual fix on.

The test self-skips when no Chrome binary is found (override with SUITABLE_CHROME_BIN), so it stays green where a browser isn't available. ubuntu-latest ships Chrome, so it runs in CI.

Refs #47, #48.

@bbatsov
bbatsov force-pushed the browser-runtime-integration-test branch from 3fb45e0 to f42fad4 Compare July 18, 2026 09:37
Our only integration coverage ran over a Node runtime, so the browser
completion path (issues #47 and #48) was untested. This adds a :browser-test
shadow build served over :dev-http and loaded in headless Chrome, so a real
browser runtime connects back and we can drive completions against it.

The test confirms `(.lo js/console)` method completion works over a browser
runtime on a plain clone, which pins #47/#48 to mranderson inlining rather
than the browser path itself. It skips cleanly when no Chrome binary is
found, so it stays green where a browser isn't available.
@bbatsov
bbatsov force-pushed the browser-runtime-integration-test branch from f42fad4 to a586ecd Compare July 18, 2026 09:42
@bbatsov
bbatsov merged commit 62898a9 into master Jul 18, 2026
8 of 9 checks passed
@bbatsov
bbatsov deleted the browser-runtime-integration-test branch July 18, 2026 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant