mirror of
https://github.com/morluto/rea.git
synced 2026-11-24 07:26:11 +00:00
perf(schemas): use discriminatedUnion and ownedJsonValueSchema for O(1) dispatch and zero-clone parsing (#13311)
Refs #13302
This commit is contained in:
1 parent
275b5740f6
commit
e807ccdc48
33 files changed
+229
-95
No files matched your search
+2
-5
@@ -176,11 +176,8 @@ it("matches renderer, frame, script bytes, and worker without claiming execution
|
||||
}).error?.issues,
|
||||
).toMatchObject([
|
||||
{
|
||||
path: ["reconciliations", 0],
|
||||
code: "invalid_union",
|
||||
errors: expect.arrayContaining([
|
||||
[expect.objectContaining({ path: ["static_node_id"] })],
|
||||
]),
|
||||
path: ["reconciliations", 0, "static_node_id"],
|
||||
code: "invalid_type",
|
||||
},
|
||||
]);
|
||||
expect(result.static_load_states).toEqual(
|
||||
|
||||
Reference in new issue
Block a user