Skip to content

Commit

Permalink
Return msw startup promise to await
Browse files Browse the repository at this point in the history
  • Loading branch information
IanVS committed Jun 12, 2024
1 parent 1f62bd3 commit bfd2943
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/msw-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ export default class MswConfig {
this.msw = setupWorker(...this.handlers);

let logging = this.mirageConfig?.logging || false;
this.msw.start({
return this.msw.start({
quiet: !logging,
onUnhandledRequest: (req) => {
const verb = req.method.toUpperCase();
Expand Down

0 comments on commit bfd2943

Please sign in to comment.