test(core): cover Effect Schema event definitions
Exercise the new SyncEvent and BusEvent Schema overloads end to end and use Schema.isSchema for the conversion check so the mixed-schema path stays explicit and covered.
This commit is contained in:
@@ -117,7 +117,7 @@ export function define<
|
||||
}
|
||||
|
||||
function toZodObject(value: ZodObject | Schema.Top): z.ZodObject {
|
||||
if (typeof value === "object" && value !== null && "ast" in value) {
|
||||
if (Schema.isSchema(value)) {
|
||||
return zod(value as Schema.Top) as unknown as z.ZodObject
|
||||
}
|
||||
return value as z.ZodObject
|
||||
|
||||
Reference in New Issue
Block a user