Files
bun.sh/test/js
Claude Bot 27163b9acd Implement expect.addSnapshotSerializer
Add support for custom snapshot serializers via expect.addSnapshotSerializer(),
matching Jest's API. This allows users to define custom formatting for
specific value types in snapshots.

Changes:
- Add serializers registry to Snapshots struct (snapshot.zig)
- Implement addSnapshotSerializer() function (expect.zig)
- Integrate custom serializers into snapshot formatting pipeline (JSValue.zig)
- Initialize serializers array in TestRunner (test_command.zig)
- Add comprehensive tests for snapshot serializer functionality

The implementation checks registered serializers (in LIFO order) before
falling back to default formatting. Serializers can use either the
modern 'print' function or legacy 'serialize' function.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-01 03:21:27 +00:00
..
2025-10-27 18:58:06 -07:00