Files
webnet/packages/browser-test-utils
codingetandClaude 22232c921b
Node Tests / node-tests (pull_request) Successful in 4m45s
Browser Tests / browser-tests (pull_request) Successful in 4m22s
Node Tests / node-tests (push) Successful in 3m52s
Browser Tests / browser-tests (push) Successful in 5m39s
fix(browser-test-utils): polyfill __name for tsx-compiled page.evaluate callbacks
tsx hardcodes keepNames:true in its esbuild transform, injecting a __name
helper at module scope. Playwright's page.evaluate() serializes callbacks
via .toString(), so the helper is absent in the browser context. Inject a
matching polyfill via addInitScript on every new page.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-23 22:13:38 +00:00
..