expect.toHaveReturnedWith/toHaveLastReturnedWith/toHaveNthReturnedWith (#21363)

Fixes #10380

DRAFT: not reviewed

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
pfg
2025-08-01 15:09:03 -07:00
committed by GitHub
parent 40bff9fea8
commit 0cf2b71ff1
17 changed files with 2885 additions and 114 deletions

View File

@@ -2620,7 +2620,7 @@ fn log_zig_getter(typename: []const u8, property_name: []const u8) callconv(bun.
fn log_zig_setter(typename: []const u8, property_name: []const u8, value: jsc.JSValue) callconv(bun.callconv_inline) void {
if (comptime Environment.enable_logs) {
zig("<r><blue>set<r> {s}<d>.<r>{s} = {}", .{typename, property_name, value});
zig("<r><blue>set<r> {s}<d>.<r>{s} = {?s}", .{typename, property_name, bun.tagName(jsc.JSValue, value)});
}
}

View File

@@ -38,6 +38,7 @@ export const sharedTypes: Record<string, string> = {
// Common Bun types
"BunString": "bun.String",
"JSC::EncodedJSValue": "jsc.JSValue",
"EncodedJSValue": "jsc.JSValue",
"JSC::JSGlobalObject": "jsc.JSGlobalObject",
"ZigException": "jsc.ZigException",
"Inspector::InspectorHTTPServerAgent": "HTTPServerAgent.InspectorHTTPServerAgent",