mirror of
https://github.com/oven-sh/bun
synced 2026-02-13 20:39:05 +00:00
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:
@@ -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)});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user