Skip to content

Commit

Permalink
Hold on to reference to MSW worker start promise
Browse files Browse the repository at this point in the history
  • Loading branch information
mrloop committed Jan 10, 2024
1 parent 36fbe40 commit a765c91
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 @@ -450,7 +450,7 @@ export default class MswConfig {
this.msw = setupWorker(...this.handlers);

let logging = this.mirageConfig?.logging || false;
this.msw.start({
this.msw._startPromise = this.msw.start({

Check failure on line 453 in lib/msw-config.ts

View workflow job for this annotation

GitHub Actions / lint

Property '_startPromise' does not exist on type 'SetupWorkerApi'.

Check failure on line 453 in lib/msw-config.ts

View workflow job for this annotation

GitHub Actions / build

Property '_startPromise' does not exist on type 'SetupWorkerApi'.
quiet: !logging,
onUnhandledRequest: (req) => {
const verb = req.method.toUpperCase();
Expand Down

0 comments on commit a765c91

Please sign in to comment.