3
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

TypeError: supabase.from(...).select is not a function

3
Posted at

はじめに

  • Vitestのエラー

問題

  • VitestでSupabaseのdeleteはテストできるのに、selectを含む処理がテストできない

解決

  • deleteはモックしていたが、selectはモックし忘れていたのでモックして解決

終わりに

  • 自分とツールのメンタルモデルを描いて確認すると、検索とかをするよりも早く正確に解決できている気がする
3
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?