yarn msw 0.19.5

latest releases: 2.2.14, 2.3.0-ws.rc-6, 2.3.0-ws.rc-5...
3 years ago

Features

  • Adds a warning when using redundant query parameters in a request handler URL (#231, #233).
  • Throws an exception when running setupWorker in a NodeJS environment (#219).
  • Throws an exception when running setupServer in a browser environment (#214, #219).
  • Adds a custom error message when calling worker.start() and the worker script doesn’t exist (#237, #242).
  • Exports GraphQL type annotations for GraphQLMockedRequest, GraphQLMockedContext, GraphQLRequestPayload, GraphQLResponseResolver types (#213, #241).

Bug fixes

  • Sets the default realistic response time of ctx.delay() to 5ms when run in Node environment (including jsdom) (#205).
  • Fixes an issue that resulted into the response Promise to never resolve when using jest.useFakeTimers() in your tests (#243).
  • Fixes a bug that resulted into a request handler URL with query parameters to produce a false negative match with the identical actual request URL. Query parameters and hashes in a request handler URL no longer affect the matching process.

Don't miss a new msw release

NewReleases is sending notifications on new releases.