Initial commit of 001code-html Scratch frontend project.

Includes scratch-gui, scratch-vm, scratch-blocks, scratch-render, scratch-l10n, and deployment config.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-16 15:37:45 +08:00
commit 6e0a1fbcbb
11350 changed files with 965674 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
# Snapshot tests
Snapshot testing runs the compiler on many of the test projects in test/fixtures/execute and verifies that the compiled output is identical to a pre-calculated "snapshot". This verifies:
- The compiler is deterministic (mostly)
- The compiler's output does not change unexpectedly
- Optimizations and type analysis in the generated code are working properly
These snapshots are automatically verified as part of the integration tests. There is also a more readable CLI for humans. To verify the snapshots:
```
node test/snapshot
```
When the compiler's output or the test projects have intentionally changed, run:
```
node test/snapshot --update
```
Verify that the snapshot diff is what you expect, then commit the changes.