Make it so that we can console.log in browser to debug gentest #1718

Closed
joevilches wants to merge 1 commits from export-D64011035 into main
joevilches commented 2024-10-07 15:55:31 -07:00 (Migrated from github.com)

Summary: Our gentest works by console.logging the contents of the test it is generating to the browser powered by the driver. The driver then reads the logs and writes it to a file. An unfortunate side effect here is that we cannot console.log to debug how the gentest logic actually works since the driver is expecting formatted code. To get around this I had the driver filter out logs with a certain prefix and add that a helper that logs a message with this prefix to the scripts.

Differential Revision: D64011035

Summary: Our gentest works by console.logging the contents of the test it is generating to the browser powered by the driver. The driver then reads the logs and writes it to a file. An unfortunate side effect here is that we cannot console.log to debug how the gentest logic actually works since the driver is expecting formatted code. To get around this I had the driver filter out logs with a certain prefix and add that a helper that logs a message with this prefix to the scripts. Differential Revision: D64011035
vercel[bot] commented 2024-10-07 15:55:35 -07:00 (Migrated from github.com)

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
yoga-website Ready (Inspect) Visit Preview 💬 Add feedback Oct 9, 2024 10:50pm
[vc]: #/wD0i7KhrNzE8pM22LjNtTs0CdfXwivAWRX4iwctc5g=:eyJpc01vbm9yZXBvIjp0cnVlLCJ0eXBlIjoiZ2l0aHViIiwicHJvamVjdHMiOlt7Im5hbWUiOiJ5b2dhLXdlYnNpdGUiLCJyb290RGlyZWN0b3J5Ijoid2Vic2l0ZSIsImluc3BlY3RvclVybCI6Imh0dHBzOi8vdmVyY2VsLmNvbS9mYm9wZW5zb3VyY2UveW9nYS13ZWJzaXRlL0RRRVBmMmU3MktyZk1uekw4NDlYRkdjeG55aEYiLCJwcmV2aWV3VXJsIjoieW9nYS13ZWJzaXRlLWdpdC1mb3JrLWpvZXZpbGNoZXMtZXhwb3J0LWQ2NDAxMTAzNS1mYm9wZW5zb3VyY2UudmVyY2VsLmFwcCIsIm5leHRDb21taXRTdGF0dXMiOiJERVBMT1lFRCIsImxpdmVGZWVkYmFjayI6eyJyZXNvbHZlZCI6MCwidW5yZXNvbHZlZCI6MCwidG90YWwiOjAsImxpbmsiOiJ5b2dhLXdlYnNpdGUtZ2l0LWZvcmstam9ldmlsY2hlcy1leHBvcnQtZDY0MDExMDM1LWZib3BlbnNvdXJjZS52ZXJjZWwuYXBwIn19XX0= **The latest updates on your projects**. Learn more about [Vercel for Git ↗︎](https://vercel.link/github-learn-more) | Name | Status | Preview | Comments | Updated (UTC) | | :--- | :----- | :------ | :------- | :------ | | **yoga-website** | ✅ Ready ([Inspect](https://vercel.com/fbopensource/yoga-website/DQEPf2e72KrfMnzL849XFGcxnyhF)) | [Visit Preview](https://vercel.live/open-feedback/yoga-website-git-fork-joevilches-export-d64011035-fbopensource.vercel.app?via=pr-comment-visit-preview-link&passThrough=1) | 💬 [**Add feedback**](https://vercel.live/open-feedback/yoga-website-git-fork-joevilches-export-d64011035-fbopensource.vercel.app?via=pr-comment-feedback-link) | Oct 9, 2024 10:50pm |
facebook-github-bot commented 2024-10-07 15:55:47 -07:00 (Migrated from github.com)

This pull request was exported from Phabricator. Differential Revision: D64011035

This pull request was **exported** from Phabricator. Differential Revision: [D64011035](https://www.internalfb.com/diff/D64011035)
facebook-github-bot commented 2024-10-09 15:47:55 -07:00 (Migrated from github.com)

This pull request was exported from Phabricator. Differential Revision: D64011035

This pull request was **exported** from Phabricator. Differential Revision: [D64011035](https://www.internalfb.com/diff/D64011035)
facebook-github-bot commented 2024-10-09 19:24:08 -07:00 (Migrated from github.com)

This pull request has been merged in facebook/yoga@ef9ae63268.

This pull request has been merged in facebook/yoga@ef9ae63268685895ec49568d0615ddc84158a301.

Pull request closed

Sign in to join this conversation.
No description provided.