Skip to content

Commit

Permalink
Unset msw property when stopping
Browse files Browse the repository at this point in the history
This prevents multiple duplicate handlers from being added
  • Loading branch information
IanVS committed Jun 12, 2024
1 parent fbc00a9 commit 2a9e727
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/msw-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -543,5 +543,6 @@ export default class MswConfig {

shutdown() {
this.msw?.stop();
this.msw = undefined;
}
}

0 comments on commit 2a9e727

Please sign in to comment.