Skip to content

Commit

Permalink
make sure to reset the handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
yannbf committed Jan 29, 2024
1 parent 9cedceb commit 0f49e5c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/msw-addon/src/applyRequestHandlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import type { Context } from './decorator'
export function applyRequestHandlers(
handlersListOrObject: Context['parameters']['msw']
): void {
api?.resetHandlers();

if (handlersListOrObject == null) {
return
}
Expand Down

0 comments on commit 0f49e5c

Please sign in to comment.