【テスト】TestingLibraryElementError: Found multiple elements with the textに沼った
- TestingLibraryElementError: Found multiple elements with the textエラーが発生した
- findByTextで検索した要素が複数存在し、Supabaseへの接続がテスト中に実行されていた
- テスト中に外部APIに接続すると意図しない副作用が発生するため、モックを設定する必要がある
【テスト】TestingLibraryElementError: Found multiple elements with the textに沼った - Qiita


