Mock data from client with jest (supabase.js)

How can I mock the data returned from client.from method in supabse javascript client libarary ?

This should work, but how can mock the {data} of returned PostgrestQueryBuilder ?
 mockSupabaseClient.from.mockImplementationOnce(("profiles") => {
   return new PostgrestQueryBuilder(url,{})      })
Was this page helpful?