-
Notifications
You must be signed in to change notification settings - Fork 717
Add baseline/diff generation for JS emit #651
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
I think |
It's improved, though we still do seem to do full checks? This is the thing Anders noted about |
I don't really know what to do to review the files GitHub won't load, but it passes! 😅 |
I did some local futzing to undo all of the baselines and get a diff of just the code. I think things look good, my only commentary would be about |
Is it possible to differentiate between what was present in the FS before compilation vs. after? In Strada we use a fake |
Not directly or conveniently, but @iisaduan's tsc tests track this by walking the FS before/after to show additions, removals, changes, etc, I believe. |
The vfs in Strada (harness/vfsUtil.ts) had that capability via snapshotting, but IMO the most reliable way to do this is to ensure a given component only interacts with a mockable host, e.g., instead of exposing |
This adds baseline and diff support for JS emit, fixes a few crashes, and accepts the current set of baselines.