Open infomiho opened 2 weeks ago
I gave up on type tests because they were very difficult to write. Since they involve writing types that involve React Query's QueryResult
wrapper and Prisma's GetResult
wrapper I could only test the smallest bits without them failing. I think the headless tests cover the behaviour well and they are enough in the end.
Closes #2032
We implement some neat helpers for using the CRUD operations e.g.
tasksCrud.getAll.useQuery()
so users don't have to importuseQuery
and writeuseQuery(tasksCrud.getAll.query)
.The way we implemented this broke user expectations that these two things have the same API (minus the
queryFn
which is there implicitly).Left to do