Summary
tests/reflex_adapter/test_assets.py::test_client_source_is_the_installed_bundle fails after the official production JS build because it searches for unminified source declarations in a deliberately minified bundle.
Verified on main at d505ef5789d8b18e23fd838300b039932dc399ce.
Reproduction
node js/build.mjs
.venv/bin/pytest -q tests/reflex_adapter/test_assets.py::test_client_source_is_the_installed_bundle
Actual behavior
The build succeeds and writes minified python/xy/static/index.js. The test then fails on:
AssertionError: assert 'function renderStandalone(' in <minified bundle>
The bundle still exports ChartView, decodeFrame, and renderStandalone; their declarations are renamed by minification. The adapter wheel and sdist artifact verifier both pass.
Expected behavior
The adapter asset test validates the shipped minified export contract instead of source-level identifier spelling.
Acceptance criteria
Summary
tests/reflex_adapter/test_assets.py::test_client_source_is_the_installed_bundlefails after the official production JS build because it searches for unminified source declarations in a deliberately minified bundle.Verified on
mainatd505ef5789d8b18e23fd838300b039932dc399ce.Reproduction
Actual behavior
The build succeeds and writes minified
python/xy/static/index.js. The test then fails on:The bundle still exports
ChartView,decodeFrame, andrenderStandalone; their declarations are renamed by minification. The adapter wheel and sdist artifact verifier both pass.Expected behavior
The adapter asset test validates the shipped minified export contract instead of source-level identifier spelling.
Acceptance criteria
node js/build.mjs.tests/reflex_adaptersuite passes after the production bundle is built.