Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
nock スコープに対して複数のアサーションを実行し、beforeEach でリクエストをモックしようとしていますが、scope.pendingMocks()すべてをクリーンアップした後でもリクエストが表示されます。
scope.pendingMocks()
afterEach(() => { nock.cleanAll(); });
複数のリクエストを使用して同じホストにモックを設定し、各テストでリクエストを新たにアサートする最良の方法は何ですか?