Skip to content

Commit

Permalink
Reset handlers when running config
Browse files Browse the repository at this point in the history
  • Loading branch information
IanVS committed Jun 12, 2024
1 parent cdf9043 commit 1f62bd3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/msw-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,9 @@ export default class MswConfig {
this.mirageServer = server;
this.mirageConfig = mirageConfig;

// Reset handlers
this.handlers = [];

this.config(mirageConfig);

const verbs = [
Expand Down

0 comments on commit 1f62bd3

Please sign in to comment.